pub struct SnsTreasuryMetricRow {
pub treasury: i32,
pub treasury_kind: SnsTreasuryKind,
pub name: Option<String>,
pub ledger_canister_id: Option<String>,
pub account_owner: Option<String>,
pub account_subaccount_hex: Option<String>,
pub amount_e8s: Option<u64>,
pub original_amount_e8s: Option<u64>,
pub timestamp_seconds: Option<u64>,
}Expand description
SnsTreasuryMetricRow
One timestamped cached treasury metric returned by SNS Governance.
Fields§
§treasury: i32Raw native treasury discriminant.
treasury_kind: SnsTreasuryKindNative treasury classification derived from the raw discriminant.
name: Option<String>Human-readable treasury name returned by Governance.
ledger_canister_id: Option<String>Ledger that is authoritative for the treasury account.
account_owner: Option<String>Owner of the authoritative treasury account.
account_subaccount_hex: Option<String>Optional 32-byte account subaccount as lowercase hexadecimal text.
amount_e8s: Option<u64>Cached current treasury amount in native e8s.
original_amount_e8s: Option<u64>Treasury amount at swap finalization in native e8s.
timestamp_seconds: Option<u64>Unix timestamp when this cached treasury metric was updated.
Trait Implementations§
Source§impl Clone for SnsTreasuryMetricRow
impl Clone for SnsTreasuryMetricRow
Source§fn clone(&self) -> SnsTreasuryMetricRow
fn clone(&self) -> SnsTreasuryMetricRow
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 SnsTreasuryMetricRow
impl Debug for SnsTreasuryMetricRow
impl Eq for SnsTreasuryMetricRow
Source§impl PartialEq for SnsTreasuryMetricRow
impl PartialEq for SnsTreasuryMetricRow
Source§impl Serialize for SnsTreasuryMetricRow
impl Serialize for SnsTreasuryMetricRow
impl StructuralPartialEq for SnsTreasuryMetricRow
Auto Trait Implementations§
impl Freeze for SnsTreasuryMetricRow
impl RefUnwindSafe for SnsTreasuryMetricRow
impl Send for SnsTreasuryMetricRow
impl Sync for SnsTreasuryMetricRow
impl Unpin for SnsTreasuryMetricRow
impl UnsafeUnpin for SnsTreasuryMetricRow
impl UnwindSafe for SnsTreasuryMetricRow
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