Skip to main content

NnsNeuronRow

Struct NnsNeuronRow 

Source
pub struct NnsNeuronRow {
Show 21 fields pub neuron_id: u64, pub state: i32, pub state_text: String, pub visibility: Option<i32>, pub visibility_text: String, pub neuron_type: Option<i32>, pub neuron_type_text: String, pub stake_e8s: u64, pub staked_maturity_e8s_equivalent: Option<u64>, pub dissolve_delay_seconds: u64, pub age_seconds: u64, pub created_timestamp_seconds: u64, pub retrieved_at_timestamp_seconds: u64, pub voting_power: u64, pub deciding_voting_power: Option<u64>, pub potential_voting_power: Option<u64>, pub voting_power_refreshed_timestamp_seconds: Option<u64>, pub joined_community_fund_timestamp_seconds: Option<u64>, pub eight_year_gang_bonus_base_e8s: Option<u64>, pub known_neuron_data: Option<NnsKnownNeuronData>, pub recent_ballots: Vec<NnsNeuronBallotRow>,
}
Expand description

NnsNeuronRow

Public limited view of one NNS neuron returned by Governance.

Fields§

§neuron_id: u64

Stable Governance neuron identifier.

§state: i32

Raw Governance state discriminant.

§state_text: String

Stable display label for the raw state.

§visibility: Option<i32>

Raw optional neuron visibility discriminant.

§visibility_text: String

Stable display label for the raw visibility.

§neuron_type: Option<i32>

Raw optional neuron-type discriminant.

§neuron_type_text: String

Stable display label for the raw neuron type.

§stake_e8s: u64

Public effective stake, including staked maturity, in e8s.

§staked_maturity_e8s_equivalent: Option<u64>

Staked maturity included in effective stake, in e8s when supplied.

§dissolve_delay_seconds: u64

Current dissolve delay in seconds.

§age_seconds: u64

Current neuron age in seconds.

§created_timestamp_seconds: u64

Neuron creation timestamp in Unix seconds.

§retrieved_at_timestamp_seconds: u64

Governance retrieval timestamp in Unix seconds.

§voting_power: u64

Deprecated Governance voting-power field retained losslessly.

§deciding_voting_power: Option<u64>

Current deciding voting power when supplied.

§potential_voting_power: Option<u64>

Current potential voting power when supplied.

§voting_power_refreshed_timestamp_seconds: Option<u64>

Last voting-power refresh timestamp in Unix seconds.

§joined_community_fund_timestamp_seconds: Option<u64>

Neurons’ Fund join timestamp in Unix seconds when publicly visible.

§eight_year_gang_bonus_base_e8s: Option<u64>

Eight-year dissolve-delay bonus base in e8s when supplied.

§known_neuron_data: Option<NnsKnownNeuronData>

Registered public known-neuron metadata when present.

§recent_ballots: Vec<NnsNeuronBallotRow>

Recent ballots visible to the unauthenticated caller.

Trait Implementations§

Source§

impl Clone for NnsNeuronRow

Source§

fn clone(&self) -> NnsNeuronRow

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NnsNeuronRow

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for NnsNeuronRow

Source§

impl PartialEq for NnsNeuronRow

Source§

fn eq(&self, other: &NnsNeuronRow) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for NnsNeuronRow

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for NnsNeuronRow

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.