pub struct Checkpoint {
pub id: String,
pub snapshot: PackedSnapshot,
pub metadata: SnapshotMetadata,
pub parent_id: Option<String>,
}Fields§
§id: String§snapshot: PackedSnapshot§metadata: SnapshotMetadata§parent_id: Option<String>Implementations§
Source§impl Checkpoint
impl Checkpoint
pub fn new(id: String, snapshot: PackedSnapshot) -> Self
pub fn with_parent(self, parent_id: String) -> Self
pub fn with_metadata(self, metadata: SnapshotMetadata) -> Self
Trait Implementations§
Source§impl Clone for Checkpoint
impl Clone for Checkpoint
Source§fn clone(&self) -> Checkpoint
fn clone(&self) -> Checkpoint
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 moreAuto Trait Implementations§
impl Freeze for Checkpoint
impl RefUnwindSafe for Checkpoint
impl Send for Checkpoint
impl Sync for Checkpoint
impl Unpin for Checkpoint
impl UnwindSafe for Checkpoint
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