pub struct HistoryRow {
pub id: String,
pub seq: u32,
pub kind: String,
pub at: i64,
pub by: String,
pub principal: String,
pub bytes: u64,
pub title: Option<String>,
pub authors: Option<Vec<Author>>,
}Expand description
One change of a note, as history lists it.
Fields§
§id: String§seq: u32Its place in the note’s changes, from 1; replay { seq } stands the note there.
kind: StringWhat it was: create, update (a live edit), save (a whole body, merged), rename, delete, or snapshot (a squash of every change up to it).
at: i64When, in unix milliseconds.
by: StringWho: their name, and their principal.
principal: String§bytes: u64The update’s size, in bytes.
title: Option<String>The title it set (create, rename, snapshot).
A snapshot’s: who wrote what in the changes it holds.
Trait Implementations§
Source§impl Clone for HistoryRow
impl Clone for HistoryRow
Source§impl Debug for HistoryRow
impl Debug for HistoryRow
Source§impl<'de> Deserialize<'de> for HistoryRow
impl<'de> Deserialize<'de> for HistoryRow
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 Eq for HistoryRow
Source§impl JsonSchema for HistoryRow
impl JsonSchema for HistoryRow
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for HistoryRow
impl PartialEq for HistoryRow
Source§impl Serialize for HistoryRow
impl Serialize for HistoryRow
impl StructuralPartialEq for HistoryRow
Auto Trait Implementations§
impl Forget for HistoryRow
impl Freeze for HistoryRow
impl Move for HistoryRow
impl RefUnwindSafe for HistoryRow
impl Send for HistoryRow
impl Sync for HistoryRow
impl Unpin for HistoryRow
impl UnsafeUnpin for HistoryRow
impl UnwindSafe for HistoryRow
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.