Struct solana_foundation_delegation_program_registry::state::Participant [−][src]
pub struct Participant { pub testnet_identity: Pubkey, pub mainnet_identity: Pubkey, pub state: ParticipantState, }
Fields
testnet_identity: Pubkey
mainnet_identity: Pubkey
state: ParticipantState
Trait Implementations
impl BorshDeserialize for Participant where
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
ParticipantState: BorshDeserialize,
impl BorshDeserialize for Participant where
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
ParticipantState: BorshDeserialize,
impl BorshSchema for Participant where
Pubkey: BorshSchema,
Pubkey: BorshSchema,
ParticipantState: BorshSchema,
impl BorshSchema for Participant where
Pubkey: BorshSchema,
Pubkey: BorshSchema,
ParticipantState: BorshSchema,
Get the name of the type without brackets.
Recursively, using DFS, add type definitions required for this type. For primitive types this is an empty map. Type definition explains how to serialize/deserialize a type. Read more
fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
Helper method to add a single type definition to the map.
impl BorshSerialize for Participant where
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
ParticipantState: BorshSerialize,
impl BorshSerialize for Participant where
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
ParticipantState: BorshSerialize,
Returns the “default value” for a type. Read more
Get the packed length
Unpack from slice and check if initialized
Unpack from slice without checking if initialized
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Participant
impl Send for Participant
impl Sync for Participant
impl Unpin for Participant
impl UnwindSafe for Participant
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V