pub struct SnsSwapDerivedState {
pub sns_tokens_per_icp: Option<f64>,
pub buyer_total_icp_e8s: Option<u64>,
pub direct_participation_icp_e8s: Option<u64>,
pub neurons_fund_participation_icp_e8s: Option<u64>,
pub direct_participant_count: Option<u64>,
pub cf_participant_count: Option<u64>,
pub cf_neuron_count: Option<u64>,
}Expand description
SnsSwapDerivedState
Native aggregate participation values returned by the swap canister.
Fields§
§sns_tokens_per_icp: Option<f64>Derived SNS-token amount per ICP, when returned.
buyer_total_icp_e8s: Option<u64>Total buyer ICP in e8s, when returned.
direct_participation_icp_e8s: Option<u64>Direct-participation ICP in e8s, when returned.
neurons_fund_participation_icp_e8s: Option<u64>Neurons’ Fund participation ICP in e8s, when returned.
direct_participant_count: Option<u64>Number of direct participants, when returned.
cf_participant_count: Option<u64>Number of Community Fund participants, when returned by older swap state.
cf_neuron_count: Option<u64>Number of Community Fund neurons, when returned by older swap state.
Trait Implementations§
Source§impl Clone for SnsSwapDerivedState
impl Clone for SnsSwapDerivedState
Source§fn clone(&self) -> SnsSwapDerivedState
fn clone(&self) -> SnsSwapDerivedState
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 SnsSwapDerivedState
impl Debug for SnsSwapDerivedState
Source§impl PartialEq for SnsSwapDerivedState
impl PartialEq for SnsSwapDerivedState
Source§impl Serialize for SnsSwapDerivedState
impl Serialize for SnsSwapDerivedState
impl StructuralPartialEq for SnsSwapDerivedState
Auto Trait Implementations§
impl Freeze for SnsSwapDerivedState
impl RefUnwindSafe for SnsSwapDerivedState
impl Send for SnsSwapDerivedState
impl Sync for SnsSwapDerivedState
impl Unpin for SnsSwapDerivedState
impl UnsafeUnpin for SnsSwapDerivedState
impl UnwindSafe for SnsSwapDerivedState
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