Trait CoreBackend

Source
pub trait CoreBackend {
Show 15 methods // Required methods fn root_id(&self) -> DirectoryId; fn fetch_directory<'life0, 'async_trait>( &'life0 mut self, directory_id: DirectoryId, ) -> Pin<Box<dyn Future<Output = Result<Directory, Error>> + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn fetch_directories<'life0, 'async_trait>( &'life0 mut self, parent_id: DirectoryId, ) -> Pin<Box<dyn Future<Output = Result<Vec<Directory>, Error>> + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn add_directory<'life0, 'async_trait>( &'life0 mut self, parent_id: DirectoryId, name: String, ) -> Pin<Box<dyn Future<Output = Result<Directory, Error>> + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn remove_directory<'life0, 'async_trait>( &'life0 mut self, directory_id: DirectoryId, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn move_directory<'life0, 'async_trait>( &'life0 mut self, directory_id: DirectoryId, parent_id: DirectoryId, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn rename_directory<'life0, 'async_trait>( &'life0 mut self, directory_id: DirectoryId, name: String, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn fetch_notes<'life0, 'async_trait>( &'life0 mut self, directory_id: DirectoryId, ) -> Pin<Box<dyn Future<Output = Result<Vec<Note>, Error>> + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn fetch_note_content<'life0, 'async_trait>( &'life0 mut self, note_id: NoteId, ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn add_note<'life0, 'async_trait>( &'life0 mut self, directory_id: DirectoryId, name: String, ) -> Pin<Box<dyn Future<Output = Result<Note, Error>> + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn remove_note<'life0, 'async_trait>( &'life0 mut self, note_id: NoteId, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn rename_note<'life0, 'async_trait>( &'life0 mut self, note_id: NoteId, name: String, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn update_note_content<'life0, 'async_trait>( &'life0 mut self, note_id: NoteId, content: String, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn move_note<'life0, 'async_trait>( &'life0 mut self, note_id: NoteId, directory_id: DirectoryId, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn log<'life0, 'async_trait>( &'life0 mut self, category: String, message: String, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait;
}

Required Methods§

Source

fn root_id(&self) -> DirectoryId

Source

fn fetch_directory<'life0, 'async_trait>( &'life0 mut self, directory_id: DirectoryId, ) -> Pin<Box<dyn Future<Output = Result<Directory, Error>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn fetch_directories<'life0, 'async_trait>( &'life0 mut self, parent_id: DirectoryId, ) -> Pin<Box<dyn Future<Output = Result<Vec<Directory>, Error>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn add_directory<'life0, 'async_trait>( &'life0 mut self, parent_id: DirectoryId, name: String, ) -> Pin<Box<dyn Future<Output = Result<Directory, Error>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn remove_directory<'life0, 'async_trait>( &'life0 mut self, directory_id: DirectoryId, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn move_directory<'life0, 'async_trait>( &'life0 mut self, directory_id: DirectoryId, parent_id: DirectoryId, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn rename_directory<'life0, 'async_trait>( &'life0 mut self, directory_id: DirectoryId, name: String, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn fetch_notes<'life0, 'async_trait>( &'life0 mut self, directory_id: DirectoryId, ) -> Pin<Box<dyn Future<Output = Result<Vec<Note>, Error>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn fetch_note_content<'life0, 'async_trait>( &'life0 mut self, note_id: NoteId, ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn add_note<'life0, 'async_trait>( &'life0 mut self, directory_id: DirectoryId, name: String, ) -> Pin<Box<dyn Future<Output = Result<Note, Error>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn remove_note<'life0, 'async_trait>( &'life0 mut self, note_id: NoteId, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn rename_note<'life0, 'async_trait>( &'life0 mut self, note_id: NoteId, name: String, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn update_note_content<'life0, 'async_trait>( &'life0 mut self, note_id: NoteId, content: String, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn move_note<'life0, 'async_trait>( &'life0 mut self, note_id: NoteId, directory_id: DirectoryId, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn log<'life0, 'async_trait>( &'life0 mut self, category: String, message: String, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§