pub enum StorageSpec {
Bind {
source: String,
target: String,
readonly: bool,
},
Named {
name: String,
target: String,
readonly: bool,
tier: StorageTier,
size: Option<String>,
},
Anonymous {
target: String,
tier: StorageTier,
},
Tmpfs {
target: String,
size: Option<String>,
mode: Option<u32>,
},
S3 {
bucket: String,
prefix: Option<String>,
target: String,
readonly: bool,
endpoint: Option<String>,
credentials: Option<String>,
},
}Expand description
Storage mount specification
Variants§
Bind
Bind mount from host path to container
Named
Named persistent storage volume
Fields
§
tier: StorageTierPerformance tier (default: local, SQLite-safe)
Anonymous
Anonymous storage (auto-named, container lifecycle)
Tmpfs
Memory-backed tmpfs mount
S3
S3-backed FUSE mount
Trait Implementations§
Source§impl Clone for StorageSpec
impl Clone for StorageSpec
Source§fn clone(&self) -> StorageSpec
fn clone(&self) -> StorageSpec
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 StorageSpec
impl Debug for StorageSpec
Source§impl<'de> Deserialize<'de> for StorageSpec
impl<'de> Deserialize<'de> for StorageSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StorageSpec
impl PartialEq for StorageSpec
Source§impl Serialize for StorageSpec
impl Serialize for StorageSpec
impl Eq for StorageSpec
impl StructuralPartialEq for StorageSpec
Auto Trait Implementations§
impl Freeze for StorageSpec
impl RefUnwindSafe for StorageSpec
impl Send for StorageSpec
impl Sync for StorageSpec
impl Unpin for StorageSpec
impl UnsafeUnpin for StorageSpec
impl UnwindSafe for StorageSpec
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.