pub struct SqliteDiaryStore { /* private fields */ }Expand description
SQLite-backed DiaryStore.
Implementations§
Trait Implementations§
Source§impl Clone for SqliteDiaryStore
impl Clone for SqliteDiaryStore
Source§fn clone(&self) -> SqliteDiaryStore
fn clone(&self) -> SqliteDiaryStore
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 DiaryStore for SqliteDiaryStore
impl DiaryStore for SqliteDiaryStore
Source§fn append<'life0, 'async_trait>(
&'life0 self,
entry: DiaryEntry,
) -> Pin<Box<dyn Future<Output = Result<DiaryEntryId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn append<'life0, 'async_trait>(
&'life0 self,
entry: DiaryEntry,
) -> Pin<Box<dyn Future<Output = Result<DiaryEntryId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Append a new entry.
Source§fn recent<'life0, 'life1, 'async_trait>(
&'life0 self,
project: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<DiaryEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn recent<'life0, 'life1, 'async_trait>(
&'life0 self,
project: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<DiaryEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List the most recent entries for a project (newest first).
Auto Trait Implementations§
impl Freeze for SqliteDiaryStore
impl RefUnwindSafe for SqliteDiaryStore
impl Send for SqliteDiaryStore
impl Sync for SqliteDiaryStore
impl Unpin for SqliteDiaryStore
impl UnsafeUnpin for SqliteDiaryStore
impl UnwindSafe for SqliteDiaryStore
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