pub struct NnsNeuronStateDistribution {
pub state: i32,
pub state_text: NnsNeuronState,
pub neuron_count: u64,
pub effective_stake_e8s: u64,
}Expand description
NnsNeuronStateDistribution
Public neuron count and effective stake for one raw Governance state code.
Fields§
§state: i32Raw native Governance state code.
state_text: NnsNeuronStateClassification derived from the raw state code.
neuron_count: u64Number of collected neurons with this state code.
effective_stake_e8s: u64Sum of public effective stake for neurons with this state code.
Trait Implementations§
Source§impl Clone for NnsNeuronStateDistribution
impl Clone for NnsNeuronStateDistribution
Source§fn clone(&self) -> NnsNeuronStateDistribution
fn clone(&self) -> NnsNeuronStateDistribution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NnsNeuronStateDistribution
impl Debug for NnsNeuronStateDistribution
Source§impl<'de> Deserialize<'de> for NnsNeuronStateDistribution
impl<'de> Deserialize<'de> for NnsNeuronStateDistribution
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NnsNeuronStateDistribution
impl StructuralPartialEq for NnsNeuronStateDistribution
Auto Trait Implementations§
impl Freeze for NnsNeuronStateDistribution
impl RefUnwindSafe for NnsNeuronStateDistribution
impl Send for NnsNeuronStateDistribution
impl Sync for NnsNeuronStateDistribution
impl Unpin for NnsNeuronStateDistribution
impl UnsafeUnpin for NnsNeuronStateDistribution
impl UnwindSafe for NnsNeuronStateDistribution
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more