#[repr(C)]
pub enum DelegateArgs {
CollectionV1 {
authorization_data: Option<AuthorizationData>,
},
SaleV1 {
amount: u64,
authorization_data: Option<AuthorizationData>,
},
TransferV1 {
amount: u64,
authorization_data: Option<AuthorizationData>,
},
UpdateV1 {
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>,
},
}
Variants§
CollectionV1
Fields
Required authorization data to validate the request.
SaleV1
TransferV1
UpdateV1
Fields
Required authorization data to validate the request.
UtilityV1
StakingV1
StandardV1
LockedTransferV1
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,
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 PartialEq<DelegateArgs> for DelegateArgs
impl PartialEq<DelegateArgs> 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 ==
.