pub struct Snapshot {
pub id: String,
pub timestamp: DateTime<Utc>,
pub message: Option<String>,
pub table: Table,
pub hashes: TableHashes,
pub dependencies: Vec<Dependency>,
}Expand description
A snapshot represents the complete state of a table at a point in time
Fields§
§id: StringUnique identifier for this snapshot
timestamp: DateTime<Utc>When this snapshot was taken
message: Option<String>User-provided message explaining the snapshot
table: TableThe table data
hashes: TableHashesHashes for integrity verification
dependencies: Vec<Dependency>Dependencies on other tables/files
Implementations§
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 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