Enum spl_governance::state::enums::VoteWeightSource [−][src]
#[repr(C)]
pub enum VoteWeightSource {
Deposit,
Snapshot,
}
Expand description
The source of voter weights used to vote on proposals
Variants
Governing token deposits into the Realm are used as voter weights
Governing token account snapshots as of the time a proposal entered voting state are used as voter weights Note: Snapshot source is not supported in the current version Support for account snapshots are required in solana and/or arweave as a prerequisite
Trait Implementations
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.
Auto Trait Implementations
impl RefUnwindSafe for VoteWeightSource
impl Send for VoteWeightSource
impl Sync for VoteWeightSource
impl Unpin for VoteWeightSource
impl UnwindSafe for VoteWeightSource
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more