pub struct NotesEngine {
pub repo_path: PathBuf,
}Fields§
§repo_path: PathBufImplementations§
Source§impl NotesEngine
impl NotesEngine
pub fn new<P: AsRef<Path>>(repo_path: P) -> Self
pub fn read_notes(&self, namespace: &Namespace) -> Result<Vec<Note>>
pub fn write_note(&self, note: &Note) -> Result<String>
pub fn delete_note(&self, note_id: Uuid, namespace: &Namespace) -> Result<()>
pub fn list_notes_for_commit( &self, commit: &str, namespace: &Namespace, ) -> Result<Vec<Note>>
Auto Trait Implementations§
impl Freeze for NotesEngine
impl RefUnwindSafe for NotesEngine
impl Send for NotesEngine
impl Sync for NotesEngine
impl Unpin for NotesEngine
impl UnsafeUnpin for NotesEngine
impl UnwindSafe for NotesEngine
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