pub struct MainnetSnsSwap {
pub swap_canister_id: String,
pub lifecycle_method: SnsCanisterMethod,
pub sale_parameters_method: SnsCanisterMethod,
pub derived_state_method: SnsCanisterMethod,
pub point_in_time_guaranteed: bool,
pub lifecycle: Option<SnsSwapLifecycle>,
pub sale_parameters: Option<SnsSwapSaleParameters>,
pub derived_state: Option<SnsSwapDerivedState>,
pub gaps: Vec<SnsSwapQueryGap>,
}Expand description
MainnetSnsSwap
Source-layer result from the three bounded native swap queries for one SNS.
Fields§
§swap_canister_id: StringSwap canister identity queried by the source.
lifecycle_method: SnsCanisterMethodNative lifecycle query method.
sale_parameters_method: SnsCanisterMethodNative sale-parameters query method.
derived_state_method: SnsCanisterMethodNative derived-state query method.
point_in_time_guaranteed: boolWhether the source can prove one point-in-time snapshot across all queries.
lifecycle: Option<SnsSwapLifecycle>Lifecycle response, absent only when represented by a matching gap.
sale_parameters: Option<SnsSwapSaleParameters>Sale parameters, or None for either a matching gap or a successful empty response.
derived_state: Option<SnsSwapDerivedState>Derived-state response, absent only when represented by a matching gap.
gaps: Vec<SnsSwapQueryGap>Component query failures retained by the source.
Trait Implementations§
Source§impl Clone for MainnetSnsSwap
impl Clone for MainnetSnsSwap
Source§impl Debug for MainnetSnsSwap
impl Debug for MainnetSnsSwap
Source§impl PartialEq for MainnetSnsSwap
impl PartialEq for MainnetSnsSwap
Source§impl Serialize for MainnetSnsSwap
impl Serialize for MainnetSnsSwap
impl StructuralPartialEq for MainnetSnsSwap
Auto Trait Implementations§
impl Freeze for MainnetSnsSwap
impl RefUnwindSafe for MainnetSnsSwap
impl Send for MainnetSnsSwap
impl Sync for MainnetSnsSwap
impl Unpin for MainnetSnsSwap
impl UnsafeUnpin for MainnetSnsSwap
impl UnwindSafe for MainnetSnsSwap
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