pub enum MountType {
File,
Directory,
Volume,
Tmpfs {
size_mb: u32,
},
ConfigFile {
template: String,
},
}Expand description
Type of mount.
Variants§
File
Regular file.
Directory
Directory.
Volume
Docker volume (named volume).
Tmpfs
Temporary filesystem (tmpfs).
ConfigFile
Config file generated from template.
Implementations§
Source§impl MountType
impl MountType
Sourcepub fn is_directory(&self) -> bool
pub fn is_directory(&self) -> bool
Check if this is a directory mount.
Sourcepub fn is_config_file(&self) -> bool
pub fn is_config_file(&self) -> bool
Check if this is a config file mount.
Sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
Get the display name for this mount type.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MountType
impl<'de> Deserialize<'de> for MountType
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
impl Eq for MountType
impl StructuralPartialEq for MountType
Auto Trait Implementations§
impl Freeze for MountType
impl RefUnwindSafe for MountType
impl Send for MountType
impl Sync for MountType
impl Unpin for MountType
impl UnwindSafe for MountType
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.