pub struct HistorySnapshot {
pub changes: Vec<Change>,
pub checkpoints: HashMap<String, Checkpoint>,
pub snapshot_time: DateTime<Utc>,
}Expand description
Serializable history snapshot for persistence
Fields§
§changes: Vec<Change>All recorded changes
checkpoints: HashMap<String, Checkpoint>All checkpoints
snapshot_time: DateTime<Utc>Timestamp when snapshot was created
Implementations§
Trait Implementations§
Source§impl Clone for HistorySnapshot
impl Clone for HistorySnapshot
Source§fn clone(&self) -> HistorySnapshot
fn clone(&self) -> HistorySnapshot
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 moreSource§impl Debug for HistorySnapshot
impl Debug for HistorySnapshot
Source§impl<'de> Deserialize<'de> for HistorySnapshot
impl<'de> Deserialize<'de> for HistorySnapshot
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 HistorySnapshot
impl RefUnwindSafe for HistorySnapshot
impl Send for HistorySnapshot
impl Sync for HistorySnapshot
impl Unpin for HistorySnapshot
impl UnwindSafe for HistorySnapshot
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