pub struct Entry {
pub id: Uuid,
pub created_at: DateTime<Utc>,
pub modified_at: DateTime<Utc>,
pub hlc: Hlc,
pub body: String,
pub attachments: Vec<Attachment>,
pub tags: Vec<String>,
pub starred: bool,
pub kind: EntryKind,
pub deleted: bool,
pub version: u64,
}Fields§
§id: Uuid§created_at: DateTime<Utc>§modified_at: DateTime<Utc>§hlc: Hlc§body: String§attachments: Vec<Attachment>§starred: bool§kind: EntryKind§deleted: bool§version: u64Implementations§
Source§impl Entry
impl Entry
pub fn new_journal( body: String, explicit_tags: &[String], starred: bool, hlc: Hlc, ) -> Self
pub fn new_journal_with_attachments( body: String, explicit_tags: &[String], starred: bool, attachments: Vec<Attachment>, hlc: Hlc, ) -> Self
pub fn new_todo( body: String, explicit_tags: &[String], priority: Priority, due: Option<NaiveDate>, hlc: Hlc, ) -> Self
pub fn touch(&mut self, hlc: Hlc)
pub fn short_id(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entry
impl<'de> Deserialize<'de> for Entry
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 Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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