pub struct Revision {
pub version: u32,
pub document_id: DocumentId,
pub created: DateTime<Utc>,
pub author: Collaborator,
pub note: Option<String>,
pub tags: Vec<String>,
}Expand description
A single revision in the document history.
Fields§
§version: u32Version number (1-indexed).
document_id: DocumentIdDocument ID (hash) of this revision.
created: DateTime<Utc>When this revision was created.
Author of this revision.
note: Option<String>Optional note describing the revision.
Tags or labels for this revision.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Revision
impl<'de> Deserialize<'de> for Revision
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
impl StructuralPartialEq for Revision
Auto Trait Implementations§
impl Freeze for Revision
impl RefUnwindSafe for Revision
impl Send for Revision
impl Sync for Revision
impl Unpin for Revision
impl UnsafeUnpin for Revision
impl UnwindSafe for Revision
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