Enum spl_governance::state::legacy::VoteWeightV1
source · [−]Expand description
Vote with number of votes
Variants
Yes(u64)
Yes vote
No(u64)
No vote
Trait Implementations
sourceimpl BorshDeserialize for VoteWeightV1 where
u64: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for VoteWeightV1 where
u64: BorshDeserialize,
u64: BorshDeserialize,
sourceimpl BorshSchema for VoteWeightV1
impl BorshSchema for VoteWeightV1
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 VoteWeightV1 where
u64: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for VoteWeightV1 where
u64: BorshSerialize,
u64: BorshSerialize,
sourceimpl Clone for VoteWeightV1
impl Clone for VoteWeightV1
sourcefn clone(&self) -> VoteWeightV1
fn clone(&self) -> VoteWeightV1
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VoteWeightV1
impl Debug for VoteWeightV1
sourceimpl PartialEq<VoteWeightV1> for VoteWeightV1
impl PartialEq<VoteWeightV1> for VoteWeightV1
sourcefn eq(&self, other: &VoteWeightV1) -> bool
fn eq(&self, other: &VoteWeightV1) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &VoteWeightV1) -> bool
fn ne(&self, other: &VoteWeightV1) -> bool
This method tests for !=
.
impl StructuralPartialEq for VoteWeightV1
Auto Trait Implementations
impl RefUnwindSafe for VoteWeightV1
impl Send for VoteWeightV1
impl Sync for VoteWeightV1
impl Unpin for VoteWeightV1
impl UnwindSafe for VoteWeightV1
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