pub enum StorageLocation {
Local(PathBuf),
}Expand description
Backend + root location for storage operations.
This type represents the root of a storage backend (e.g. a local directory
or an object-store prefix). It is intentionally generic and does not
encode table-specific semantics; use TableLocation when you need a table
root and table-scoped helpers.
Many storage helpers take a StorageLocation plus a relative path/key,
which keeps backend roots and object paths separate and explicit.
Variants§
Implementations§
Trait Implementations§
Source§impl AsRef<StorageLocation> for TableLocation
impl AsRef<StorageLocation> for TableLocation
Source§fn as_ref(&self) -> &StorageLocation
fn as_ref(&self) -> &StorageLocation
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for StorageLocation
impl Clone for StorageLocation
Source§fn clone(&self) -> StorageLocation
fn clone(&self) -> StorageLocation
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 StorageLocation
impl Debug for StorageLocation
Source§impl From<TableLocation> for StorageLocation
impl From<TableLocation> for StorageLocation
Source§fn from(t: TableLocation) -> Self
fn from(t: TableLocation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StorageLocation
impl RefUnwindSafe for StorageLocation
impl Send for StorageLocation
impl Sync for StorageLocation
impl Unpin for StorageLocation
impl UnsafeUnpin for StorageLocation
impl UnwindSafe for StorageLocation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more