pub struct NotesStore { /* private fields */ }Implementations§
Source§impl NotesStore
impl NotesStore
pub fn open( path: impl AsRef<Path>, families: Arc<dyn FamilyStore>, ) -> Result<Self, NotesError>
pub async fn create(&self, note: NewNote) -> Result<Note, NotesError>
pub async fn list_accessible( &self, user_id: &str, selected_family: Option<&str>, ) -> Result<Vec<NoteSummary>, NotesError>
pub async fn get_accessible( &self, user_id: &str, selected_family: Option<&str>, note_id: &str, ) -> Result<Note, NotesError>
pub async fn update_owned( &self, user_id: &str, note_id: &str, update: UpdateNote, ) -> Result<Note, NotesError>
pub async fn delete_owned( &self, user_id: &str, note_id: &str, ) -> Result<(), NotesError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for NotesStore
impl !UnwindSafe for NotesStore
impl Freeze for NotesStore
impl Send for NotesStore
impl Sync for NotesStore
impl Unpin for NotesStore
impl UnsafeUnpin for NotesStore
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