pub struct SnapshotSummary {
pub snapshot_id: SnapshotId,
pub namespace_id: NamespaceId,
pub name: String,
pub captured_seq: ChangeSeq,
pub created_at_ms: u64,
pub expires_at_ms: u64,
}Expand description
A live snapshot.
Fields§
§snapshot_id: SnapshotIdSnapshot id.
namespace_id: NamespaceIdNamespace whose state the snapshot captured.
name: StringSnapshot label.
captured_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 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.
Returns None for another owner. A snapshot owner always carries the
checkpoint’s top-level expires_at_ms.
Trait Implementations§
Source§impl Clone for SnapshotSummary
impl Clone for SnapshotSummary
Source§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