pub struct Note {
pub id: String,
pub org: String,
pub title: String,
pub body: Option<String>,
pub bytes: u64,
pub revision: u32,
pub created_at: i64,
pub created_by: String,
pub at: i64,
pub by: String,
}Expand description
A note: its id, its organization, its title and markdown body, its revision now (every write keeps one), who made it and who wrote it last.
Fields§
§id: StringIts id, 8 characters of Crockford’s base32 (7k3mq2xa); the app opens it at #/note/<id>.
org: StringThe organization it is in (acme): who may read and write it is the roles held there.
title: String§body: Option<String>The markdown, byte for byte — absent from a list’s rows and a watch of every note.
bytes: u64The body’s size, in bytes.
revision: u32The revision it is at: the seq of its last change (1 when made, one more with every change).
created_at: i64When it was made (unix seconds), and by whom.
created_by: String§at: i64When it was last written (unix seconds), and by whom.
by: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Note
impl<'de> Deserialize<'de> for Note
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 Note
Source§impl JsonSchema for Note
impl JsonSchema for Note
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 moreimpl StructuralPartialEq for Note
Auto Trait Implementations§
impl Forget for Note
impl Freeze for Note
impl Move for Note
impl RefUnwindSafe for Note
impl Send for Note
impl Sync for Note
impl Unpin for Note
impl UnsafeUnpin for Note
impl UnwindSafe for Note
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.