pub struct NnsNeuronTypeDistribution {
pub neuron_type: Option<i32>,
pub neuron_type_text: NnsNeuronType,
pub neuron_count: u64,
pub effective_stake_e8s: u64,
}Expand description
NnsNeuronTypeDistribution
Public neuron count and effective stake for one optional Governance neuron-type code.
Fields§
§neuron_type: Option<i32>Raw optional native Governance neuron-type code.
neuron_type_text: NnsNeuronTypeClassification derived from the raw optional neuron-type code.
neuron_count: u64Number of collected neurons with this type code or absence.
effective_stake_e8s: u64Sum of public effective stake for neurons with this type code or absence.
Trait Implementations§
Source§impl Clone for NnsNeuronTypeDistribution
impl Clone for NnsNeuronTypeDistribution
Source§fn clone(&self) -> NnsNeuronTypeDistribution
fn clone(&self) -> NnsNeuronTypeDistribution
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 NnsNeuronTypeDistribution
impl Debug for NnsNeuronTypeDistribution
Source§impl<'de> Deserialize<'de> for NnsNeuronTypeDistribution
impl<'de> Deserialize<'de> for NnsNeuronTypeDistribution
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 NnsNeuronTypeDistribution
impl StructuralPartialEq for NnsNeuronTypeDistribution
Auto Trait Implementations§
impl Freeze for NnsNeuronTypeDistribution
impl RefUnwindSafe for NnsNeuronTypeDistribution
impl Send for NnsNeuronTypeDistribution
impl Sync for NnsNeuronTypeDistribution
impl Unpin for NnsNeuronTypeDistribution
impl UnsafeUnpin for NnsNeuronTypeDistribution
impl UnwindSafe for NnsNeuronTypeDistribution
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