pub struct VolumeMountConfig {
pub mount_type: Option<String>,
pub source: Option<String>,
pub target: Option<String>,
pub read_only: Option<bool>,
pub bind: Option<BindOptions>,
pub volume: Option<VolumeOptions>,
pub tmpfs: Option<TmpfsOptions>,
pub consistency: Option<String>,
}Expand description
Full volume mount configuration.
Fields§
§mount_type: Option<String>Mount type (volume, bind, tmpfs, npipe)
source: Option<String>Source path or volume name
target: Option<String>Target path in container
read_only: Option<bool>Read-only
bind: Option<BindOptions>Bind mount options
volume: Option<VolumeOptions>Volume options
tmpfs: Option<TmpfsOptions>tmpfs options
consistency: Option<String>Consistency mode
Trait Implementations§
Source§impl Clone for VolumeMountConfig
impl Clone for VolumeMountConfig
Source§fn clone(&self) -> VolumeMountConfig
fn clone(&self) -> VolumeMountConfig
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 VolumeMountConfig
impl Debug for VolumeMountConfig
Source§impl Default for VolumeMountConfig
impl Default for VolumeMountConfig
Source§fn default() -> VolumeMountConfig
fn default() -> VolumeMountConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VolumeMountConfig
impl<'de> Deserialize<'de> for VolumeMountConfig
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
Auto Trait Implementations§
impl Freeze for VolumeMountConfig
impl RefUnwindSafe for VolumeMountConfig
impl Send for VolumeMountConfig
impl Sync for VolumeMountConfig
impl Unpin for VolumeMountConfig
impl UnwindSafe for VolumeMountConfig
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