pub struct ThreadUpdateSnapshots {
pub old: Option<Vec<u8>>,
pub new: Option<Vec<u8>>,
pub old_records: Vec<Vec<u8>>,
pub new_records: Vec<Vec<u8>>,
pub old_ref_absent: bool,
}Expand description
Optional ThreadManager record snapshots captured around a [ThreadUpdate].
Fields§
§old: Option<Vec<u8>>rmp-serde-encoded Thread record body before the update, or None
when no record existed before the forward path.
new: Option<Vec<u8>>rmp-serde-encoded Thread record body after the update, or None
when the forward path only moved the ref.
old_records: Vec<Vec<u8>>Complete same-thread record set before the update. Empty for records written before duplicate-record convergence needed full-set restore.
new_records: Vec<Vec<u8>>Complete same-thread record set after the update. Empty for records written before duplicate-record convergence needed full-set restore.
old_ref_absent: boolWhether the thread ref was absent before the update. This lets undo of a metadata-only repair remove a recreated ref instead of setting it to a fallback state that was only used to identify the record.
Implementations§
Trait Implementations§
Source§impl Clone for ThreadUpdateSnapshots
impl Clone for ThreadUpdateSnapshots
Source§fn clone(&self) -> ThreadUpdateSnapshots
fn clone(&self) -> ThreadUpdateSnapshots
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more