INNER CODE UNIT · Rust

rename_directory

gluesql/glues · core/src/backend.rs:93

    async fn rename_directory(&mut self, directory_id: DirectoryId, name: String) -> Result<()>;

    async fn fetch_notes(&mut self, directory_id: DirectoryId) -> Result<Vec<Note>>;
    async fn fetch_note_content(&mut self, note_id: NoteId) -> Result<String>;
    async fn add_note(&mut self, directory_id: DirectoryId, name: String) -> Result<Note>;
    async fn remove_note(&mut self, note_id: NoteId) -> Result<()>;
    async fn rename_note(&mut self, note_id: NoteId, name: String) -> Result<()>;
    async fn update_note_content(&mut self, note_id: NoteId, content: String) -> Result<()>;
    async fn move_note(&mut self, note_id: NoteId, directory_id: DirectoryId) -> Result<()>;

    async fn log(&mut self, category: String, message: String) -> Result<()>;

    fn sync_job(&self) -> Option<SyncJob>;
}

#[async_trait]
impl CoreBackend for Box<dyn CoreBackend + Send> {
    fn root_id(&self) -> DirectoryId {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…