pub struct Snapshot {
pub id: SnapshotId,
pub description: Option<String>,
pub created_at: DateTime<Utc>,
pub document_version: DocumentVersion,
pub data: SnapshotData,
}Expand description
A snapshot of document state
Fields§
§id: SnapshotIdSnapshot identifier (name)
description: Option<String>Optional description
created_at: DateTime<Utc>When the snapshot was created
document_version: DocumentVersionDocument version at snapshot time
data: SnapshotDataSerialized document data
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
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin 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