pub enum CloudSnapshot {
Disk {
snapshot: CloudSnapshotDetails,
},
}Expand description
Wire shape of a completed cloud snapshot.
Variants§
Disk
A disk-only snapshot.
Fields
§
snapshot: CloudSnapshotDetailsFields shared by every snapshot kind.
Implementations§
Source§impl CloudSnapshot
impl CloudSnapshot
Sourcepub const fn kind(&self) -> CloudSnapshotKind
pub const fn kind(&self) -> CloudSnapshotKind
Return the completed snapshot kind.
Sourcepub const fn details(&self) -> &CloudSnapshotDetails
pub const fn details(&self) -> &CloudSnapshotDetails
Return fields shared by every snapshot kind.
Sourcepub fn into_details(self) -> CloudSnapshotDetails
pub fn into_details(self) -> CloudSnapshotDetails
Consume this snapshot and return its shared fields.
Trait Implementations§
Source§impl Clone for CloudSnapshot
impl Clone for CloudSnapshot
Source§fn clone(&self) -> CloudSnapshot
fn clone(&self) -> CloudSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CloudSnapshot
impl Debug for CloudSnapshot
Source§impl<'de> Deserialize<'de> for CloudSnapshot
impl<'de> Deserialize<'de> for CloudSnapshot
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
Auto Trait Implementations§
impl Freeze for CloudSnapshot
impl RefUnwindSafe for CloudSnapshot
impl Send for CloudSnapshot
impl Sync for CloudSnapshot
impl Unpin for CloudSnapshot
impl UnsafeUnpin for CloudSnapshot
impl UnwindSafe for CloudSnapshot
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