pub struct SnapshotSummary {
pub snapshot_id: CheckpointId,
pub namespace_id: NamespaceId,
pub name: String,
pub head_seq: ChangeSeq,
pub created_at_ms: u64,
pub expires_at_ms: u64,
}Expand description
A live snapshot.
Fields§
§snapshot_id: CheckpointIdSnapshot id.
namespace_id: NamespaceIdNamespace whose state the snapshot captured.
name: StringSnapshot label.
head_seq: ChangeSeqNamespace sequence captured by the snapshot.
created_at_ms: u64Time the snapshot record was created, in Unix milliseconds.
expires_at_ms: u64When the snapshot lease expires, in Unix milliseconds.
Implementations§
Source§impl SnapshotSummary
impl SnapshotSummary
Sourcepub fn from_checkpoint(checkpoint: Checkpoint) -> Option<Self>
pub fn from_checkpoint(checkpoint: Checkpoint) -> Option<Self>
Converts a snapshot-owned checkpoint to a snapshot summary.
Trait Implementations§
Source§impl Clone for SnapshotSummary
impl Clone for SnapshotSummary
Source§fn clone(&self) -> SnapshotSummary
fn clone(&self) -> SnapshotSummary
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 SnapshotSummary
impl Debug for SnapshotSummary
Source§impl<'de> Deserialize<'de> for SnapshotSummary
impl<'de> Deserialize<'de> for SnapshotSummary
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
impl Eq for SnapshotSummary
Source§impl PartialEq for SnapshotSummary
impl PartialEq for SnapshotSummary
Source§impl Serialize for SnapshotSummary
impl Serialize for SnapshotSummary
impl StructuralPartialEq for SnapshotSummary
Auto Trait Implementations§
impl Freeze for SnapshotSummary
impl RefUnwindSafe for SnapshotSummary
impl Send for SnapshotSummary
impl Sync for SnapshotSummary
impl Unpin for SnapshotSummary
impl UnsafeUnpin for SnapshotSummary
impl UnwindSafe for SnapshotSummary
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