pub struct ElementMetadata {
pub id: i64,
pub user: String,
pub uid: u64,
pub version: u32,
pub changeset: u64,
pub timestamp: String,
}
Expand description
Common metadata for an element
Fields§
§id: i64
§user: String
The display name of the user who last modified the object; exclusively informative and may be empty. A user can change their display name at any time (existing elements will reflect the new user name without needing any version change).
uid: u64
The user-id of the user who last modified the object.
version: u32
The version of the object; newly created objects start at version 1 and the value is incremented by the server when a client uploads a new version of the object.
changeset: u64
The changeset number in which the object was created or last updated.
timestamp: String
Time of the last modification, encoded in any W3C standard date and time format
Trait Implementations§
Source§impl Clone for ElementMetadata
impl Clone for ElementMetadata
Source§fn clone(&self) -> ElementMetadata
fn clone(&self) -> ElementMetadata
Returns a copy 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 PartialEq for ElementMetadata
impl PartialEq 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