pub struct ElementMetadata {
pub created_at: u64,
pub modified_at: u64,
pub deleted: bool,
pub last_modified_by: ReplicaId,
}Expand description
Metadata for a list element
Fields§
§created_at: u64When the element was created
modified_at: u64When the element was last modified
deleted: boolWhether the element is marked as deleted
last_modified_by: ReplicaIdReplica that last modified the element
Implementations§
Trait Implementations§
Source§impl Clone for ElementMetadata
impl Clone for ElementMetadata
Source§fn clone(&self) -> ElementMetadata
fn clone(&self) -> ElementMetadata
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 ElementMetadata
impl Debug for ElementMetadata
Source§impl<'de> Deserialize<'de> for ElementMetadata
impl<'de> Deserialize<'de> for ElementMetadata
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 ElementMetadata
impl PartialEq for ElementMetadata
Source§impl Serialize for ElementMetadata
impl Serialize for ElementMetadata
impl Eq for ElementMetadata
impl StructuralPartialEq for ElementMetadata
Auto Trait Implementations§
impl Freeze for ElementMetadata
impl RefUnwindSafe for ElementMetadata
impl Send for ElementMetadata
impl Sync for ElementMetadata
impl Unpin for ElementMetadata
impl UnwindSafe for ElementMetadata
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