pub struct Snapshot {
pub id: u64,
pub scope: ScopeId,
pub name: String,
pub step: u64,
pub origin: Origin,
pub at: f64,
pub pending: bool,
}Expand description
A named state pinned in a scope (ADR 0014): taken by the user or an agent, never dropped by the cap, restored as a new step.
Fields§
§id: u64Unique within its owner; never 0.
scope: ScopeId§name: String§step: u64The scope’s head when it was taken (0: the start).
origin: OriginWho took it.
at: f64When it was taken, in seconds of the owner’s clock.
pending: boolNot kept yet: an owner that keeps a snapshot only once its state is saved (at its next save) says so until then; it is lost if the application quits first. The history panel marks it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Snapshot
impl<'de> Deserialize<'de> for Snapshot
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 StructuralPartialEq for Snapshot
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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