Struct spl_token_group_interface::state::TokenGroupMember
source · #[repr(C)]pub struct TokenGroupMember {
pub mint: Pubkey,
pub group: Pubkey,
pub member_number: PodU32,
}
Expand description
Data struct for a TokenGroupMember
Fields§
§mint: Pubkey
The associated mint, used to counter spoofing to be sure that member belongs to a particular mint
group: Pubkey
The pubkey of the TokenGroup
member_number: PodU32
The member number
Implementations§
Trait Implementations§
source§impl Clone for TokenGroupMember
impl Clone for TokenGroupMember
source§fn clone(&self) -> TokenGroupMember
fn clone(&self) -> TokenGroupMember
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 TokenGroupMember
impl Debug for TokenGroupMember
source§impl Default for TokenGroupMember
impl Default for TokenGroupMember
source§fn default() -> TokenGroupMember
fn default() -> TokenGroupMember
Returns the “default value” for a type. Read more
source§impl PartialEq for TokenGroupMember
impl PartialEq for TokenGroupMember
source§fn eq(&self, other: &TokenGroupMember) -> bool
fn eq(&self, other: &TokenGroupMember) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SplDiscriminate for TokenGroupMember
impl SplDiscriminate for TokenGroupMember
source§const SPL_DISCRIMINATOR: ArrayDiscriminator = _
const SPL_DISCRIMINATOR: ArrayDiscriminator = _
The 8-byte discriminator as a
[u8; 8]
source§const SPL_DISCRIMINATOR_SLICE: &'static [u8] = _
const SPL_DISCRIMINATOR_SLICE: &'static [u8] = _
The 8-byte discriminator as a slice (
&[u8]
)impl Copy for TokenGroupMember
impl Pod for TokenGroupMember
impl StructuralPartialEq for TokenGroupMember
Auto Trait Implementations§
impl RefUnwindSafe for TokenGroupMember
impl Send for TokenGroupMember
impl Sync for TokenGroupMember
impl Unpin for TokenGroupMember
impl UnwindSafe for TokenGroupMember
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
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.