pub struct BearDb { /* private fields */ }Implementations§
Source§impl BearDb
impl BearDb
pub fn open(path: PathBuf) -> Result<Self>
pub fn find_note( &self, id: Option<&str>, title: Option<&str>, exclude_trashed: bool, ) -> Result<NoteRecord>
pub fn search( &self, term: Option<&str>, tag: Option<&str>, include_trashed: bool, since: Option<i64>, before: Option<i64>, ) -> Result<Vec<SearchResult>>
pub fn export_notes(&self, tag: Option<&str>) -> Result<Vec<ExportNote>>
Sourcepub fn note_title(&self, note_id: &str) -> Result<Option<String>>
pub fn note_title(&self, note_id: &str) -> Result<Option<String>>
Returns the title of the note with the given identifier, or None if
the note does not exist.
pub fn duplicate_titles(&self) -> Result<Vec<DuplicateGroup>>
pub fn stats_summary(&self) -> Result<StatsSummary>
pub fn health_summary(&self) -> Result<HealthSummary>
pub fn untagged(&self, search: Option<&str>) -> Result<Vec<NoteListItem>>
pub fn todo(&self, search: Option<&str>) -> Result<Vec<NoteListItem>>
pub fn today(&self, search: Option<&str>) -> Result<Vec<NoteListItem>>
pub fn locked(&self, search: Option<&str>) -> Result<Vec<NoteListItem>>
Auto Trait Implementations§
impl !Freeze for BearDb
impl !RefUnwindSafe for BearDb
impl Send for BearDb
impl !Sync for BearDb
impl Unpin for BearDb
impl UnsafeUnpin for BearDb
impl !UnwindSafe for BearDb
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