pub struct Note {Show 19 fields
pub id: String,
pub pk: i64,
pub title: String,
pub text: String,
pub tags: Vec<String>,
pub created: i64,
pub modified: i64,
pub trashed: bool,
pub archived: bool,
pub pinned: bool,
pub locked: bool,
pub encrypted: bool,
pub has_images: bool,
pub has_files: bool,
pub has_source_code: bool,
pub todo_completed: i64,
pub todo_incompleted: i64,
pub attachments: Vec<Attachment>,
pub pinned_in_tags: Vec<String>,
}Expand description
A Bear note, populated from ZSFNOTE + related tables.
Fields§
§id: StringZUNIQUEIDENTIFIER: external ID used in CLI commands.
pk: i64Z_PK: internal SQLite primary key, used only for joins.
title: StringZTITLE: empty string when the column is NULL.
text: StringZTEXT: empty string when the note is encrypted or the column is NULL.
Tag names, sorted alphabetically, from the Z_5TAGS join.
created: i64ZCREATIONDATE converted to Unix timestamp (seconds).
modified: i64ZMODIFICATIONDATE converted to Unix timestamp (seconds).
trashed: bool§archived: bool§pinned: bool§locked: bool§encrypted: bool§has_images: bool§has_files: bool§has_source_code: bool§todo_completed: i64§todo_incompleted: i64§attachments: Vec<Attachment>Populated on demand (e.g. for show --fields attachments).
Pin contexts: “global” for the All Notes pin, or a tag name. Populated on demand.
Implementations§
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
Source§impl From<&Note> for ExportNote
impl From<&Note> for ExportNote
Source§impl From<Note> for ExportNote
impl From<Note> for ExportNote
Auto Trait Implementations§
impl Freeze 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