Enum spl_governance::state::enums::MintMaxVoteWeightSource
source · [−]Expand description
The source of max vote weight used for voting Values below 100% mint supply can be used when the governing token is fully minted but not distributed yet
Variants
SupplyFraction(u64)
Fraction (10^10 precision) of the governing mint supply is used as max vote weight The default is 100% (10^10) to use all available mint supply for voting
Absolute(u64)
Absolute value, irrelevant of the actual mint supply, is used as max vote weight Note: this option is not implemented in the current version
Implementations
Base for mint supply fraction calculation
100% of mint supply
Trait Implementations
impl BorshDeserialize for MintMaxVoteWeightSource where
u64: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for MintMaxVoteWeightSource where
u64: BorshDeserialize,
u64: BorshDeserialize,
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 MintMaxVoteWeightSource where
u64: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for MintMaxVoteWeightSource where
u64: BorshSerialize,
u64: BorshSerialize,
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 MintMaxVoteWeightSource
impl Send for MintMaxVoteWeightSource
impl Sync for MintMaxVoteWeightSource
impl Unpin for MintMaxVoteWeightSource
impl UnwindSafe for MintMaxVoteWeightSource
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more