pub struct ContextSnapshot {
pub sister_type: SisterType,
pub version: Version,
pub context_info: ContextInfo,
pub data: Vec<u8>,
pub checksum: [u8; 32],
pub snapshot_at: DateTime<Utc>,
}Expand description
Exportable context snapshot (for backup/transfer)
Fields§
§sister_type: SisterTypeWhich sister type this came from
version: VersionVersion of the sister that created this
context_info: ContextInfoContext information
data: Vec<u8>Serialized context data (sister-specific format)
checksum: [u8; 32]Checksum of the data (BLAKE3)
snapshot_at: DateTime<Utc>When this snapshot was created
Implementations§
Trait Implementations§
Source§impl Clone for ContextSnapshot
impl Clone for ContextSnapshot
Source§fn clone(&self) -> ContextSnapshot
fn clone(&self) -> ContextSnapshot
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 ContextSnapshot
impl Debug for ContextSnapshot
Source§impl<'de> Deserialize<'de> for ContextSnapshot
impl<'de> Deserialize<'de> for ContextSnapshot
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 ContextSnapshot
impl RefUnwindSafe for ContextSnapshot
impl Send for ContextSnapshot
impl Sync for ContextSnapshot
impl Unpin for ContextSnapshot
impl UnsafeUnpin for ContextSnapshot
impl UnwindSafe for ContextSnapshot
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