pub struct TxResponseStatus {
pub status: ReturnCode,
pub message: String,
}
Expand description
The status of a transaction.
Fields§
§status: ReturnCode
The status of the transaction.
message: String
The message of the transaction.
Implementations§
Source§impl TxResponseStatus
impl TxResponseStatus
Sourcepub fn new(status: ReturnCode, message: &str) -> Self
pub fn new(status: ReturnCode, message: &str) -> Self
Creates a TxResponseStatus
Sourcepub fn signal_error(message: &str) -> Self
pub fn signal_error(message: &str) -> Self
Creates a TxResponseStatus
that signals an error.
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Checks if the transaction was successful.
Trait Implementations§
Source§impl Clone for TxResponseStatus
impl Clone for TxResponseStatus
Source§fn clone(&self) -> TxResponseStatus
fn clone(&self) -> TxResponseStatus
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TxResponseStatus
impl Debug for TxResponseStatus
Source§impl Default for TxResponseStatus
impl Default for TxResponseStatus
Source§fn default() -> TxResponseStatus
fn default() -> TxResponseStatus
Returns the “default value” for a type. Read more
Source§impl Display for TxResponseStatus
impl Display for TxResponseStatus
Source§impl PartialEq for TxResponseStatus
impl PartialEq for TxResponseStatus
impl Eq for TxResponseStatus
impl StructuralPartialEq for TxResponseStatus
Auto Trait Implementations§
impl Freeze for TxResponseStatus
impl RefUnwindSafe for TxResponseStatus
impl Send for TxResponseStatus
impl Sync for TxResponseStatus
impl Unpin for TxResponseStatus
impl UnwindSafe for TxResponseStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
fn interpret_from(from: &T, _context: &InterpreterContext) -> T
Source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more