Enum mpl_token_auth_rules::payload::PayloadType
source · #[repr(C)]
pub enum PayloadType {
Pubkey(Pubkey),
Seeds(SeedsVec),
MerkleProof(ProofInfo),
Number(u64),
}
Expand description
Variants representing the different types represented in a payload.
Variants§
Pubkey(Pubkey)
A plain Pubkey
.
Seeds(SeedsVec)
PDA derivation seeds.
MerkleProof(ProofInfo)
A merkle proof.
Number(u64)
A plain u64
used for Amount
.
Trait Implementations§
source§impl BorshDeserialize for PayloadTypewhere
Pubkey: BorshDeserialize,
SeedsVec: BorshDeserialize,
ProofInfo: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for PayloadTypewhere
Pubkey: BorshDeserialize,
SeedsVec: BorshDeserialize,
ProofInfo: BorshDeserialize,
u64: BorshDeserialize,
source§impl BorshSerialize for PayloadTypewhere
Pubkey: BorshSerialize,
SeedsVec: BorshSerialize,
ProofInfo: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for PayloadTypewhere
Pubkey: BorshSerialize,
SeedsVec: BorshSerialize,
ProofInfo: BorshSerialize,
u64: BorshSerialize,
source§impl Clone for PayloadType
impl Clone for PayloadType
source§fn clone(&self) -> PayloadType
fn clone(&self) -> PayloadType
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 PayloadType
impl Debug for PayloadType
source§impl PartialEq<PayloadType> for PayloadType
impl PartialEq<PayloadType> for PayloadType
source§fn eq(&self, other: &PayloadType) -> bool
fn eq(&self, other: &PayloadType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.