pub struct DocumentVersion {
pub counter: u64,
pub timestamp: DateTime<Utc>,
pub state_hash: [u8; 8],
}Expand description
Document version with additional metadata
Fields§
§counter: u64Version counter
timestamp: DateTime<Utc>Timestamp
state_hash: [u8; 8]Hash of document state (for integrity checking)
Implementations§
Trait Implementations§
Source§impl Clone for DocumentVersion
impl Clone for DocumentVersion
Source§fn clone(&self) -> DocumentVersion
fn clone(&self) -> DocumentVersion
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 DocumentVersion
impl Debug for DocumentVersion
Source§impl Default for DocumentVersion
impl Default for DocumentVersion
Source§impl<'de> Deserialize<'de> for DocumentVersion
impl<'de> Deserialize<'de> for DocumentVersion
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 DocumentVersion
impl PartialEq for DocumentVersion
Source§impl Serialize for DocumentVersion
impl Serialize for DocumentVersion
impl Eq for DocumentVersion
impl StructuralPartialEq for DocumentVersion
Auto Trait Implementations§
impl Freeze for DocumentVersion
impl RefUnwindSafe for DocumentVersion
impl Send for DocumentVersion
impl Sync for DocumentVersion
impl Unpin for DocumentVersion
impl UnwindSafe for DocumentVersion
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