pub struct Storage {
pub name: Option<String>,
pub source: Option<Ref>,
pub backing_dir: Option<String>,
pub subdir: Option<String>,
pub storage_id: Option<StorageId>,
}
Expand description
Declares a storage capability backed by a directory from which data, cache, or meta storage can be offered.
Fields§
§name: Option<String>
§source: Option<Ref>
§backing_dir: Option<String>
§subdir: Option<String>
§storage_id: Option<StorageId>
Trait Implementations§
Source§impl Encodable for Storage
impl Encodable for Storage
Source§type Encoded = WireStorage
type Encoded = WireStorage
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl TakeFrom<WireStorage> for Storage
impl TakeFrom<WireStorage> for Storage
Source§fn take_from(from: &WireStorage) -> Self
fn take_from(from: &WireStorage) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for Storage
impl RefUnwindSafe for Storage
impl Send for Storage
impl Sync for Storage
impl Unpin for Storage
impl UnwindSafe for Storage
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