pub struct LoadCanisterSnapshotArgs {
pub canister_id: CanisterId,
pub snapshot_id: SnapshotId,
pub sender_canister_version: Option<u64>,
}
๐Deprecated since 0.18.0: The
api::management_canister::main
module is deprecated. Please use the management_canister
module at the crate root.Expand description
Argument type of load_canister_snapshot.
Fieldsยง
ยงcanister_id: CanisterId
๐Deprecated since 0.18.0: The
api::management_canister::main
module is deprecated. Please use the management_canister
module at the crate root.Principal of the canister.
snapshot_id: SnapshotId
๐Deprecated since 0.18.0: The
api::management_canister::main
module is deprecated. Please use the management_canister
module at the crate root.ID of the snapshot to be loaded.
sender_canister_version: Option<u64>
๐Deprecated since 0.18.0: The
api::management_canister::main
module is deprecated. Please use the management_canister
module at the crate root.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 duplicate of the value. Read more
1.0.0 ยท Sourceยงconst fn clone_from(&mut self, source: &Self)
const 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ยงfn eq(&self, other: &LoadCanisterSnapshotArgs) -> bool
fn eq(&self, other: &LoadCanisterSnapshotArgs) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Sourceยงimpl PartialOrd for LoadCanisterSnapshotArgs
impl PartialOrd 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