pub struct DiaryEntry {
pub id: DiaryEntryId,
pub project: String,
pub ts: DateTime<Utc>,
pub content: String,
pub kind: Option<String>,
pub refs: Value,
}Expand description
A single diary entry.
Fields§
§id: DiaryEntryIdStable id (UUID v4 by default).
project: StringProject slug this entry belongs to.
ts: DateTime<Utc>Wall-clock timestamp the entry was written.
content: StringFree-form markdown body.
kind: Option<String>Optional classifier ("decision", "fact", "note", "surprise").
refs: ValueStructured cross-references (KG entity ids, doc ids, urls).
Implementations§
Trait Implementations§
Source§impl Clone for DiaryEntry
impl Clone for DiaryEntry
Source§fn clone(&self) -> DiaryEntry
fn clone(&self) -> DiaryEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DiaryEntry
impl Debug for DiaryEntry
Source§impl<'de> Deserialize<'de> for DiaryEntry
impl<'de> Deserialize<'de> for DiaryEntry
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 DiaryEntry
impl PartialEq for DiaryEntry
Source§fn eq(&self, other: &DiaryEntry) -> bool
fn eq(&self, other: &DiaryEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DiaryEntry
impl Serialize for DiaryEntry
impl StructuralPartialEq for DiaryEntry
Auto Trait Implementations§
impl Freeze for DiaryEntry
impl RefUnwindSafe for DiaryEntry
impl Send for DiaryEntry
impl Sync for DiaryEntry
impl Unpin for DiaryEntry
impl UnsafeUnpin for DiaryEntry
impl UnwindSafe for DiaryEntry
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