pub struct FileStorage { /* private fields */ }Expand description
File-based project storage
Implementations§
Source§impl FileStorage
impl FileStorage
pub async fn new(base_dir: PathBuf) -> Result<Self>
pub async fn list(&self) -> Result<Vec<ProjectMeta>>
pub async fn get(&self, id: Uuid) -> Result<ProjectSchema>
pub async fn save(&self, project: &ProjectSchema) -> Result<()>
pub async fn delete(&self, id: Uuid) -> Result<()>
pub async fn exists(&self, id: Uuid) -> bool
Auto Trait Implementations§
impl Freeze for FileStorage
impl RefUnwindSafe for FileStorage
impl Send for FileStorage
impl Sync for FileStorage
impl Unpin for FileStorage
impl UnwindSafe for FileStorage
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