pub struct VjournalDataProvide { /* private fields */ }Expand description
Persists journal entries as iCalendar VJOURNAL components in a directory.
Implementations§
Trait Implementations§
Source§impl DataProvider for VjournalDataProvide
impl DataProvider for VjournalDataProvide
async fn load_all_entries(&mut self) -> Result<Vec<Entry>>
async fn add_entry( &mut self, entry: EntryDraft, ) -> Result<Entry, ModifyEntryError>
Source§async fn restore_entry(
&mut self,
entry: Entry,
) -> Result<Entry, ModifyEntryError>
async fn restore_entry( &mut self, entry: Entry, ) -> Result<Entry, ModifyEntryError>
Restores an entry with its existing id. Implementations must not overwrite another entry.
async fn remove_entry(&mut self, entry_id: u32) -> Result<()>
async fn update_entry( &mut self, entry: Entry, ) -> Result<Entry, ModifyEntryError>
async fn get_export_object(&mut self, entries_ids: &[u32]) -> Result<EntriesDTO>
Source§async fn assign_priority_to_entries(&mut self, priority: u32) -> Result<()>
async fn assign_priority_to_entries(&mut self, priority: u32) -> Result<()>
Assigns priority to all entries that don’t have a priority assigned to
async fn import_entries(&mut self, entries_dto: EntriesDTO) -> Result<()>
Auto Trait Implementations§
impl Freeze for VjournalDataProvide
impl RefUnwindSafe for VjournalDataProvide
impl Send for VjournalDataProvide
impl Sync for VjournalDataProvide
impl Unpin for VjournalDataProvide
impl UnsafeUnpin for VjournalDataProvide
impl UnwindSafe for VjournalDataProvide
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more