pub struct FilesystemStorage { /* private fields */ }Implementations§
Source§impl FilesystemStorage
impl FilesystemStorage
pub fn list_manifests_by_type( &self, manifest_type: ManifestType, ) -> Result<Vec<ManifestMetadata>>
pub fn export_all(&self, export_path: PathBuf) -> Result<usize>
pub fn import_from_directory(&self, import_path: PathBuf) -> Result<usize>
pub fn get_manifest_size(&self, id: &str) -> Result<u64>
pub fn get_total_storage_size(&self) -> Result<u64>
pub fn manifest_exists(&self, id: &str) -> bool
pub fn backup(&self, backup_path: PathBuf) -> Result<()>
Trait Implementations§
Source§impl Clone for FilesystemStorage
impl Clone for FilesystemStorage
Source§fn clone(&self) -> FilesystemStorage
fn clone(&self) -> FilesystemStorage
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 moreSource§impl Debug for FilesystemStorage
impl Debug for FilesystemStorage
Source§impl StorageBackend for FilesystemStorage
impl StorageBackend for FilesystemStorage
fn get_base_uri(&self) -> String
fn store_manifest(&self, manifest: &Manifest) -> Result<String>
fn retrieve_manifest(&self, id: &str) -> Result<Manifest>
fn list_manifests(&self) -> Result<Vec<ManifestMetadata>>
fn delete_manifest(&self, id: &str) -> Result<()>
fn as_any(&self) -> &dyn Any
Auto Trait Implementations§
impl Freeze for FilesystemStorage
impl RefUnwindSafe for FilesystemStorage
impl Send for FilesystemStorage
impl Sync for FilesystemStorage
impl Unpin for FilesystemStorage
impl UnwindSafe for FilesystemStorage
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