Struct simple_voter::Electorate
source · [−]pub struct Electorate {
pub bump: u8,
pub base: Pubkey,
pub governor: Pubkey,
pub gov_token_mint: Pubkey,
pub proposal_threshold: u64,
}Fields
bump: u8TODO(michael): Docs
base: PubkeyTODO(michael): Docs
governor: PubkeyTODO(michael): Docs
gov_token_mint: PubkeyTODO(michael): Docs
proposal_threshold: u64The number of votes required in order for a voter to activate a proposal
Trait Implementations
Deserializes previously initialized account data. Should fail for all
uninitialized accounts, where the bytes are zeroed. Implementations
should be unique to a particular account type so that one can never
successfully deserialize the data of one account type into another.
For example, if the SPL token program were to implement this trait,
it should be impossible to deserialize a Mint account into a token
Account. Read more
impl BorshDeserialize for Electorate where
u8: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for Electorate where
u8: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
impl BorshSerialize for Electorate where
u8: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for Electorate where
u8: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
u64: BorshSerialize,
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for Electorate
impl Send for Electorate
impl Sync for Electorate
impl Unpin for Electorate
impl UnwindSafe for Electorate
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more