Enum redgold_schema::structs::TransactionState
source · #[repr(i32)]pub enum TransactionState {
Rejected = 0,
Mempool = 1,
Validated = 2,
ObservedPending = 3,
ObservedAccepted = 4,
Finalized = 5,
Unknown = 6,
ObservedReverted = 7,
}Variants§
Rejected = 0
Mempool = 1
Validated = 2
ObservedPending = 3
ObservedAccepted = 4
Finalized = 5
Unknown = 6
ObservedReverted = 7
Implementations§
Trait Implementations§
source§impl Clone for TransactionState
impl Clone for TransactionState
source§fn clone(&self) -> TransactionState
fn clone(&self) -> TransactionState
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 TransactionState
impl Debug for TransactionState
source§impl Default for TransactionState
impl Default for TransactionState
source§fn default() -> TransactionState
fn default() -> TransactionState
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TransactionState
impl<'de> Deserialize<'de> for TransactionState
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<TransactionState> for i32
impl From<TransactionState> for i32
source§fn from(value: TransactionState) -> i32
fn from(value: TransactionState) -> i32
Converts to this type from the input type.
source§impl FromStr for TransactionState
impl FromStr for TransactionState
source§impl Hash for TransactionState
impl Hash for TransactionState
source§impl IntoEnumIterator for TransactionState
impl IntoEnumIterator for TransactionState
type Iterator = TransactionStateIter
fn iter() -> TransactionStateIter ⓘ
source§impl Ord for TransactionState
impl Ord for TransactionState
source§fn cmp(&self, other: &TransactionState) -> Ordering
fn cmp(&self, other: &TransactionState) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TransactionState
impl PartialEq for TransactionState
source§fn eq(&self, other: &TransactionState) -> bool
fn eq(&self, other: &TransactionState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for TransactionState
impl PartialOrd for TransactionState
source§fn partial_cmp(&self, other: &TransactionState) -> Option<Ordering>
fn partial_cmp(&self, other: &TransactionState) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for TransactionState
impl Serialize for TransactionState
source§impl TryFrom<&str> for TransactionState
impl TryFrom<&str> for TransactionState
impl Copy for TransactionState
impl Eq for TransactionState
impl StructuralEq for TransactionState
impl StructuralPartialEq for TransactionState
Auto Trait Implementations§
impl RefUnwindSafe for TransactionState
impl Send for TransactionState
impl Sync for TransactionState
impl Unpin for TransactionState
impl UnwindSafe for TransactionState
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