pub struct SqliteDataProvide { /* private fields */ }Implementations§
Trait Implementations§
Source§impl DataProvider for SqliteDataProvide
impl DataProvider for SqliteDataProvide
async fn load_all_entries(&self) -> Result<Vec<Entry>>
async fn add_entry(&self, entry: EntryDraft) -> Result<Entry, ModifyEntryError>
Source§async fn restore_entry(&self, entry: Entry) -> Result<Entry, ModifyEntryError>
async fn restore_entry(&self, entry: Entry) -> Result<Entry, ModifyEntryError>
Restores an entry with its existing id. Implementations must not overwrite another entry.
async fn remove_entry(&self, entry_id: u32) -> Result<()>
async fn update_entry(&self, entry: Entry) -> Result<Entry, ModifyEntryError>
async fn get_export_object(&self, entries_ids: &[u32]) -> Result<EntriesDTO>
Source§async fn assign_priority_to_entries(&self, priority: u32) -> Result<()>
async fn assign_priority_to_entries(&self, priority: u32) -> Result<()>
Assigns priority to all entries that don’t have a priority assigned to
async fn import_entries(&self, entries_dto: EntriesDTO) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteDataProvide
impl !UnwindSafe for SqliteDataProvide
impl Freeze for SqliteDataProvide
impl Send for SqliteDataProvide
impl Sync for SqliteDataProvide
impl Unpin for SqliteDataProvide
impl UnsafeUnpin for SqliteDataProvide
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