#[repr(C)]pub enum AccountApprovalState {
PENDING_CONFIRMATION = 0,
APPROVED = 1,
DISAPPROVED = 2,
}
Expand description
Approval state of an Account
Enumeration of values.
Since this enum’s variants do not hold data, we can easily define them them as #[repr(C)]
which helps with FFI.
Variants§
Trait Implementations§
Source§impl Clone for AccountApprovalState
impl Clone for AccountApprovalState
Source§fn clone(&self) -> AccountApprovalState
fn clone(&self) -> AccountApprovalState
Returns a duplicate 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 AccountApprovalState
impl Debug for AccountApprovalState
Source§impl<'de> Deserialize<'de> for AccountApprovalState
impl<'de> Deserialize<'de> for AccountApprovalState
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 Display for AccountApprovalState
impl Display for AccountApprovalState
Source§impl FromStr for AccountApprovalState
impl FromStr for AccountApprovalState
Source§impl Ord for AccountApprovalState
impl Ord for AccountApprovalState
Source§fn cmp(&self, other: &AccountApprovalState) -> Ordering
fn cmp(&self, other: &AccountApprovalState) -> 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 AccountApprovalState
impl PartialEq for AccountApprovalState
Source§impl PartialOrd for AccountApprovalState
impl PartialOrd for AccountApprovalState
Source§impl Serialize for AccountApprovalState
impl Serialize for AccountApprovalState
impl Copy for AccountApprovalState
impl Eq for AccountApprovalState
impl StructuralPartialEq for AccountApprovalState
Auto Trait Implementations§
impl Freeze for AccountApprovalState
impl RefUnwindSafe for AccountApprovalState
impl Send for AccountApprovalState
impl Sync for AccountApprovalState
impl Unpin for AccountApprovalState
impl UnwindSafe for AccountApprovalState
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