INNER CODE UNIT · Rust
rename_note
gluesql/glues · core/src/backend.rs:99
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 {
(**self).root_id()
}
async fn fetch_directory(&mut self, directory_id: DirectoryId) -> Result<Directory> {
(**self).fetch_directory(directory_id).await
}