pub struct Snapshot {
pub id: SnapshotId,
pub taken_at_timestamp: u64,
pub total_size: 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
A snapshot of the state of the canister at a given point in time.
Fieldsยง
ยง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.
taken_at_timestamp: u64
๐Deprecated since 0.18.0: The
api::management_canister::main
module is deprecated. Please use the management_canister
module at the crate root.The timestamp at which the snapshot was taken.
total_size: u64
๐Deprecated since 0.18.0: The
api::management_canister::main
module is deprecated. Please use the management_canister
module at the crate root.The size of the snapshot in bytes.
Trait Implementationsยง
Sourceยงimpl CandidType for Snapshot
impl CandidType for Snapshot
Sourceยงimpl<'de> Deserialize<'de> for Snapshot
impl<'de> Deserialize<'de> for Snapshot
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 Ord for Snapshot
impl Ord for Snapshot
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 PartialOrd for Snapshot
impl PartialOrd for Snapshot
impl Eq for Snapshot
impl StructuralPartialEq for Snapshot
Auto Trait Implementationsยง
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnwindSafe for Snapshot
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