pub struct ProjectStorage { /* private fields */ }
Expand description
Project storage using markdown
Implementations§
Source§impl ProjectStorage
impl ProjectStorage
pub fn new(storage_dir: PathBuf) -> Self
pub fn init(&self) -> Result<()>
pub fn save_project(&self, project: &ProjectData) -> Result<()>
pub fn load_project(&self, name: &str) -> Result<ProjectData>
pub fn list_projects(&self) -> Result<Vec<String>>
pub fn delete_project(&self, name: &str) -> Result<()>
Trait Implementations§
Source§impl Clone for ProjectStorage
impl Clone for ProjectStorage
Source§fn clone(&self) -> ProjectStorage
fn clone(&self) -> ProjectStorage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ProjectStorage
impl RefUnwindSafe for ProjectStorage
impl Send for ProjectStorage
impl Sync for ProjectStorage
impl Unpin for ProjectStorage
impl UnwindSafe for ProjectStorage
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