Enum mpl_token_metadata::types::DelegateArgs
source · pub enum DelegateArgs {
Show 13 variants
CollectionV1 {
authorization_data: Option<AuthorizationData>,
},
SaleV1 {
amount: u64,
authorization_data: Option<AuthorizationData>,
},
TransferV1 {
amount: u64,
authorization_data: Option<AuthorizationData>,
},
DataV1 {
authorization_data: Option<AuthorizationData>,
},
UtilityV1 {
amount: u64,
authorization_data: Option<AuthorizationData>,
},
StakingV1 {
amount: u64,
authorization_data: Option<AuthorizationData>,
},
StandardV1 {
amount: u64,
},
LockedTransferV1 {
amount: u64,
locked_address: Pubkey,
authorization_data: Option<AuthorizationData>,
},
ProgrammableConfigV1 {
authorization_data: Option<AuthorizationData>,
},
AuthorityItemV1 {
authorization_data: Option<AuthorizationData>,
},
DataItemV1 {
authorization_data: Option<AuthorizationData>,
},
CollectionItemV1 {
authorization_data: Option<AuthorizationData>,
},
ProgrammableConfigItemV1 {
authorization_data: Option<AuthorizationData>,
},
}
Variants§
CollectionV1
Fields
SaleV1
TransferV1
DataV1
Fields
UtilityV1
StakingV1
StandardV1
LockedTransferV1
ProgrammableConfigV1
Fields
AuthorityItemV1
Fields
DataItemV1
Fields
CollectionItemV1
Fields
ProgrammableConfigItemV1
Fields
Trait Implementations§
source§impl BorshDeserialize for DelegateArgswhere
Option<AuthorizationData>: BorshDeserialize,
u64: BorshDeserialize,
Pubkey: BorshDeserialize,
impl BorshDeserialize for DelegateArgswhere Option<AuthorizationData>: BorshDeserialize, u64: BorshDeserialize, Pubkey: BorshDeserialize,
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 BorshSerialize for DelegateArgswhere
Option<AuthorizationData>: BorshSerialize,
u64: BorshSerialize,
Pubkey: BorshSerialize,
impl BorshSerialize for DelegateArgswhere Option<AuthorizationData>: BorshSerialize, u64: BorshSerialize, Pubkey: BorshSerialize,
source§impl Clone for DelegateArgs
impl Clone for DelegateArgs
source§fn clone(&self) -> DelegateArgs
fn clone(&self) -> DelegateArgs
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 DelegateArgs
impl Debug for DelegateArgs
source§impl EnumExt for DelegateArgswhere
Option<AuthorizationData>: BorshDeserialize,
u64: BorshDeserialize,
Pubkey: BorshDeserialize,
impl EnumExt for DelegateArgswhere Option<AuthorizationData>: BorshDeserialize, u64: BorshDeserialize, Pubkey: BorshDeserialize,
source§impl PartialEq for DelegateArgs
impl PartialEq for DelegateArgs
source§fn eq(&self, other: &DelegateArgs) -> bool
fn eq(&self, other: &DelegateArgs) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DelegateArgs
impl StructuralEq for DelegateArgs
impl StructuralPartialEq for DelegateArgs
Auto Trait Implementations§
impl RefUnwindSafe for DelegateArgs
impl Send for DelegateArgs
impl Sync for DelegateArgs
impl Unpin for DelegateArgs
impl UnwindSafe for DelegateArgs
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more