pub enum TokenAccountAssertion {
Mint {
value: Pubkey,
operator: EquatableOperator,
},
Owner {
value: Pubkey,
operator: EquatableOperator,
},
Amount {
value: u64,
operator: IntegerOperator,
},
Delegate {
value: Option<Pubkey>,
operator: EquatableOperator,
},
State {
value: u8,
operator: IntegerOperator,
},
IsNative {
value: Option<u64>,
operator: EquatableOperator,
},
DelegatedAmount {
value: u64,
operator: IntegerOperator,
},
CloseAuthority {
value: Option<Pubkey>,
operator: EquatableOperator,
},
TokenAccountOwnerIsDerived,
}Variants§
Mint
Owner
Amount
Delegate
State
IsNative
DelegatedAmount
CloseAuthority
TokenAccountOwnerIsDerived
Trait Implementations§
source§impl BorshDeserialize for TokenAccountAssertion
impl BorshDeserialize for TokenAccountAssertion
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl Clone for TokenAccountAssertion
impl Clone for TokenAccountAssertion
source§fn clone(&self) -> TokenAccountAssertion
fn clone(&self) -> TokenAccountAssertion
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 TokenAccountAssertion
impl Debug for TokenAccountAssertion
source§impl EnumExt for TokenAccountAssertion
impl EnumExt for TokenAccountAssertion
source§impl PartialEq for TokenAccountAssertion
impl PartialEq for TokenAccountAssertion
source§fn eq(&self, other: &TokenAccountAssertion) -> bool
fn eq(&self, other: &TokenAccountAssertion) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for TokenAccountAssertion
impl StructuralPartialEq for TokenAccountAssertion
Auto Trait Implementations§
impl Freeze for TokenAccountAssertion
impl RefUnwindSafe for TokenAccountAssertion
impl Send for TokenAccountAssertion
impl Sync for TokenAccountAssertion
impl Unpin for TokenAccountAssertion
impl UnwindSafe for TokenAccountAssertion
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