pub struct SnsNeuronRow {Show 13 fields
pub neuron_id: String,
pub cached_neuron_stake_e8s: u64,
pub maturity_e8s_equivalent: u64,
pub staked_maturity_e8s_equivalent: Option<u64>,
pub created_timestamp_seconds: u64,
pub created_at: String,
pub source_nns_neuron_id: Option<u64>,
pub auto_stake_maturity: Option<bool>,
pub aging_since_timestamp_seconds: u64,
pub dissolve_state: Option<SnsNeuronDissolveState>,
pub voting_power_percentage_multiplier: u64,
pub vesting_period_seconds: Option<u64>,
pub neuron_fees_e8s: u64,
}Expand description
SnsNeuronRow
Serializable row for one SNS neuron in live reports and cached snapshots.
Fields§
§neuron_id: StringLowercase hexadecimal SNS neuron identifier.
cached_neuron_stake_e8s: u64Cached neuron stake in e8s.
maturity_e8s_equivalent: u64Unstaked maturity in e8s-equivalent units.
staked_maturity_e8s_equivalent: Option<u64>Staked maturity in e8s-equivalent units when present.
created_timestamp_seconds: u64Unix timestamp in seconds at which the neuron was created.
created_at: StringUTC rendering derived exactly from created_timestamp_seconds.
source_nns_neuron_id: Option<u64>Source NNS neuron identifier when the neuron was created from one.
auto_stake_maturity: Option<bool>Whether maturity is automatically staked when governance supplies the setting.
aging_since_timestamp_seconds: u64Raw SNS governance aging timestamp in seconds.
dissolve_state: Option<SnsNeuronDissolveState>Raw SNS governance dissolve-state alternative.
voting_power_percentage_multiplier: u64Raw voting-power percentage multiplier.
vesting_period_seconds: Option<u64>Vesting period in seconds when present.
neuron_fees_e8s: u64Accumulated neuron fees in e8s.
Trait Implementations§
Source§impl Clone for SnsNeuronRow
impl Clone for SnsNeuronRow
Source§fn clone(&self) -> SnsNeuronRow
fn clone(&self) -> SnsNeuronRow
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 SnsNeuronRow
impl Debug for SnsNeuronRow
Source§impl<'de> Deserialize<'de> for SnsNeuronRow
impl<'de> Deserialize<'de> for SnsNeuronRow
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 SnsNeuronRow
Source§impl PartialEq for SnsNeuronRow
impl PartialEq for SnsNeuronRow
Source§impl Serialize for SnsNeuronRow
impl Serialize for SnsNeuronRow
impl StructuralPartialEq for SnsNeuronRow
Auto Trait Implementations§
impl Freeze for SnsNeuronRow
impl RefUnwindSafe for SnsNeuronRow
impl Send for SnsNeuronRow
impl Sync for SnsNeuronRow
impl Unpin for SnsNeuronRow
impl UnsafeUnpin for SnsNeuronRow
impl UnwindSafe for SnsNeuronRow
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