pub struct DiffMetadata {
pub prev_root: [u8; 32],
pub new_root: [u8; 32],
pub hlc: Hlc,
pub device_id: Uuid,
pub seq: u64,
}Expand description
Metadata about a cognitive diff
Fields§
§prev_root: [u8; 32]Hash of the previous state root
new_root: [u8; 32]Hash of the new state root after applying this diff
hlc: HlcHLC timestamp when this diff was created
device_id: UuidDevice ID that produced this diff
seq: u64Sequence number for ordering
Trait Implementations§
Source§impl Clone for DiffMetadata
impl Clone for DiffMetadata
Source§fn clone(&self) -> DiffMetadata
fn clone(&self) -> DiffMetadata
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 DiffMetadata
impl Debug for DiffMetadata
Source§impl<'de> Deserialize<'de> for DiffMetadata
impl<'de> Deserialize<'de> for DiffMetadata
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
Source§impl PartialEq for DiffMetadata
impl PartialEq for DiffMetadata
Source§impl Serialize for DiffMetadata
impl Serialize for DiffMetadata
impl Eq for DiffMetadata
impl StructuralPartialEq for DiffMetadata
Auto Trait Implementations§
impl Freeze for DiffMetadata
impl RefUnwindSafe for DiffMetadata
impl Send for DiffMetadata
impl Sync for DiffMetadata
impl Unpin for DiffMetadata
impl UnsafeUnpin for DiffMetadata
impl UnwindSafe for DiffMetadata
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