Skip to main content

IcNodeProviderRewardRow

Struct IcNodeProviderRewardRow 

Source
pub struct IcNodeProviderRewardRow {
    pub reward_id: u64,
    pub amount_e8s: u64,
    pub details: BTreeMap<String, Value>,
    pub maximum_node_provider_rewards_e8s: Option<u64>,
    pub minimum_xdr_permyriad_per_icp: Option<u64>,
    pub node_provider_id: String,
    pub proposal_id: Option<u64>,
    pub registry_version: Option<u64>,
    pub reward_mode: String,
    pub reward_timestamp_unix_secs: u64,
    pub dashboard_updated_at: String,
    pub xdr_conversion_rate: IcNodeProviderRewardXdrConversionRate,
}
Expand description

IcNodeProviderRewardRow

One raw node-provider reward record returned by the official Dashboard API.

Fields§

§reward_id: u64

Dashboard reward record id.

§amount_e8s: u64

Reward amount in raw ICP e8s.

§details: BTreeMap<String, Value>

Mode-specific raw reward details preserved as a JSON object.

§maximum_node_provider_rewards_e8s: Option<u64>

Maximum node-provider reward in e8s used for this record, when available.

§minimum_xdr_permyriad_per_icp: Option<u64>

Minimum XDR-permyriad-per-ICP floor used for this record, when available.

§node_provider_id: String

Canonical node-provider principal.

§proposal_id: Option<u64>

NNS proposal associated with this reward, when recorded by the Dashboard.

§registry_version: Option<u64>

Registry version associated with this reward, when recorded by the Dashboard.

§reward_mode: String

Raw mode name so additive Dashboard reward modes remain visible.

§reward_timestamp_unix_secs: u64

Reward timestamp as Unix seconds.

§dashboard_updated_at: String

Raw Dashboard database update timestamp.

§xdr_conversion_rate: IcNodeProviderRewardXdrConversionRate

XDR conversion-rate evidence, empty for historical records that predate it.

Trait Implementations§

Source§

impl Clone for IcNodeProviderRewardRow

Source§

fn clone(&self) -> IcNodeProviderRewardRow

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 IcNodeProviderRewardRow

Source§

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

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

impl Eq for IcNodeProviderRewardRow

Source§

impl PartialEq for IcNodeProviderRewardRow

Source§

fn eq(&self, other: &IcNodeProviderRewardRow) -> 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 IcNodeProviderRewardRow

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 IcNodeProviderRewardRow

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.