pub struct LoadCanisterSnapshotArgs {
pub canister_id: CanisterId,
pub snapshot_id: SnapshotId,
pub sender_canister_version: Option<u64>,
}
Expand description
Argument type of load_canister_snapshot.
Fields§
§canister_id: CanisterId
Principal of the canister.
snapshot_id: SnapshotId
ID of the snapshot to be loaded.
sender_canister_version: Option<u64>
sender_canister_version must be set to ic_cdk::api::canister_version().
Trait Implementations§
Source§impl Clone for LoadCanisterSnapshotArgs
impl Clone for LoadCanisterSnapshotArgs
Source§fn clone(&self) -> LoadCanisterSnapshotArgs
fn clone(&self) -> LoadCanisterSnapshotArgs
Returns a copy of the value. Read more
1.0.0 · 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 LoadCanisterSnapshotArgs
impl Debug for LoadCanisterSnapshotArgs
Source§impl<'de> Deserialize<'de> for LoadCanisterSnapshotArgs
impl<'de> Deserialize<'de> for LoadCanisterSnapshotArgs
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
Source§impl Hash for LoadCanisterSnapshotArgs
impl Hash for LoadCanisterSnapshotArgs
Source§impl Ord for LoadCanisterSnapshotArgs
impl Ord for LoadCanisterSnapshotArgs
Source§fn cmp(&self, other: &LoadCanisterSnapshotArgs) -> Ordering
fn cmp(&self, other: &LoadCanisterSnapshotArgs) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LoadCanisterSnapshotArgs
impl PartialEq for LoadCanisterSnapshotArgs
Source§impl PartialOrd for LoadCanisterSnapshotArgs
impl PartialOrd for LoadCanisterSnapshotArgs
Source§impl Serialize for LoadCanisterSnapshotArgs
impl Serialize for LoadCanisterSnapshotArgs
impl Eq for LoadCanisterSnapshotArgs
impl StructuralPartialEq for LoadCanisterSnapshotArgs
Auto Trait Implementations§
impl Freeze for LoadCanisterSnapshotArgs
impl RefUnwindSafe for LoadCanisterSnapshotArgs
impl Send for LoadCanisterSnapshotArgs
impl Sync for LoadCanisterSnapshotArgs
impl Unpin for LoadCanisterSnapshotArgs
impl UnwindSafe for LoadCanisterSnapshotArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)