pub struct LoadSnapshotRecord {
pub from_canister_id: Option<Principal>,
pub snapshot_id: Vec<u8>,
pub canister_version: u64,
pub taken_at_timestamp: u64,
pub source: SnapshotSource,
}Expand description
Fields§
§from_canister_id: Option<Principal>The canister ID of the canister from which the snapshot was loaded (if that canister ID is different than the canister ID onto which the snapshot is loaded).
snapshot_id: Vec<u8>The ID of the snapshot that was loaded.
canister_version: u64The version of the canister at the time that the snapshot was taken.
taken_at_timestamp: u64The timestamp at which the snapshot was taken.
source: SnapshotSourceThe source from which the snapshot was taken.
Trait Implementations§
Source§impl CandidType for LoadSnapshotRecord
impl CandidType for LoadSnapshotRecord
Source§impl Clone for LoadSnapshotRecord
impl Clone for LoadSnapshotRecord
Source§fn clone(&self) -> LoadSnapshotRecord
fn clone(&self) -> LoadSnapshotRecord
Returns a duplicate 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 LoadSnapshotRecord
impl Debug for LoadSnapshotRecord
Source§impl<'de> Deserialize<'de> for LoadSnapshotRecord
impl<'de> Deserialize<'de> for LoadSnapshotRecord
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LoadSnapshotRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LoadSnapshotRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for LoadSnapshotRecord
impl Hash for LoadSnapshotRecord
Source§impl Ord for LoadSnapshotRecord
impl Ord for LoadSnapshotRecord
Source§fn cmp(&self, other: &LoadSnapshotRecord) -> Ordering
fn cmp(&self, other: &LoadSnapshotRecord) -> 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 LoadSnapshotRecord
impl PartialEq for LoadSnapshotRecord
Source§impl PartialOrd for LoadSnapshotRecord
impl PartialOrd for LoadSnapshotRecord
Source§impl Serialize for LoadSnapshotRecord
impl Serialize for LoadSnapshotRecord
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for LoadSnapshotRecord
impl StructuralPartialEq for LoadSnapshotRecord
Auto Trait Implementations§
impl Freeze for LoadSnapshotRecord
impl RefUnwindSafe for LoadSnapshotRecord
impl Send for LoadSnapshotRecord
impl Sync for LoadSnapshotRecord
impl Unpin for LoadSnapshotRecord
impl UnwindSafe for LoadSnapshotRecord
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