pub enum SnapshotSource {
TakenFromCanister(Reserved),
MetadataUpload(Reserved),
}Expand description
§The source of a snapshot.
Variants§
TakenFromCanister(Reserved)
The snapshot was taken from a canister.
MetadataUpload(Reserved)
The snapshot was created by uploading metadata.
Trait Implementations§
Source§impl CandidType for SnapshotSource
impl CandidType for SnapshotSource
Source§impl Clone for SnapshotSource
impl Clone for SnapshotSource
Source§fn clone(&self) -> SnapshotSource
fn clone(&self) -> SnapshotSource
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 SnapshotSource
impl Debug for SnapshotSource
Source§impl<'de> Deserialize<'de> for SnapshotSource
impl<'de> Deserialize<'de> for SnapshotSource
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SnapshotSource, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SnapshotSource, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for SnapshotSource
impl Hash for SnapshotSource
Source§impl Ord for SnapshotSource
impl Ord for SnapshotSource
Source§fn cmp(&self, other: &SnapshotSource) -> Ordering
fn cmp(&self, other: &SnapshotSource) -> 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 SnapshotSource
impl PartialEq for SnapshotSource
Source§impl PartialOrd for SnapshotSource
impl PartialOrd for SnapshotSource
Source§impl Serialize for SnapshotSource
impl Serialize for SnapshotSource
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 SnapshotSource
impl StructuralPartialEq for SnapshotSource
Auto Trait Implementations§
impl Freeze for SnapshotSource
impl RefUnwindSafe for SnapshotSource
impl Send for SnapshotSource
impl Sync for SnapshotSource
impl Unpin for SnapshotSource
impl UnwindSafe for SnapshotSource
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