Enum spl_governance::state::enums::VoteTipping
source · [−]#[repr(C)]
pub enum VoteTipping {
Strict,
Early,
Disabled,
}
Expand description
The type of vote tipping to use on a Proposal.
Vote tipping means that under some conditions voting will complete early.
Variants
Strict
Tip when there is no way for another option to win and the vote threshold has been reached. This ignores voters withdrawing their votes.
Currently only supported for the “yes” option in single choice votes.
Early
Tip when an option reaches the vote threshold and has more vote weight than any other options.
Currently only supported for the “yes” option in single choice votes.
Disabled
Never tip the vote early.
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 VoteTipping
impl Send for VoteTipping
impl Sync for VoteTipping
impl Unpin for VoteTipping
impl UnwindSafe for VoteTipping
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more