Struct backend::JsonDataProvide
source · pub struct JsonDataProvide { /* private fields */ }Implementations§
Trait Implementations§
source§impl DataProvider for JsonDataProvide
impl DataProvider for JsonDataProvide
async fn load_all_entries(&self) -> Result<Vec<Entry>>
async fn add_entry(&self, entry: EntryDraft) -> Result<Entry, ModifyEntryError>
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 JsonDataProvide
impl Send for JsonDataProvide
impl Sync for JsonDataProvide
impl Unpin for JsonDataProvide
impl UnwindSafe for JsonDataProvide
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