Enum spl_governance::state::vote_record::Vote
source · [−]pub enum Vote {
Approve(Vec<VoteChoice>),
Deny,
Abstain,
Veto,
}
Expand description
User’s vote
Variants
Approve(Vec<VoteChoice>)
Vote approving choices
Deny
Vote rejecting proposal
Abstain
Declare indifference to proposal Note: Not supported in the current version
Veto
Veto proposal Note: Not supported in the current version
Trait Implementations
sourceimpl BorshDeserialize for Vote where
Vec<VoteChoice>: BorshDeserialize,
impl BorshDeserialize for Vote where
Vec<VoteChoice>: BorshDeserialize,
sourceimpl BorshSchema for Vote
impl BorshSchema for Vote
sourcefn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
sourcefn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
fn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
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
sourcefn 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.
fn schema_container() -> BorshSchemaContainer
sourceimpl BorshSerialize for Vote where
Vec<VoteChoice>: BorshSerialize,
impl BorshSerialize for Vote where
Vec<VoteChoice>: BorshSerialize,
impl StructuralPartialEq for Vote
Auto Trait Implementations
impl RefUnwindSafe for Vote
impl Send for Vote
impl Sync for Vote
impl Unpin for Vote
impl UnwindSafe for Vote
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more