Struct podman_autogen_api::models::named_volume::NamedVolume
source · pub struct NamedVolume {
pub dest: Option<String>,
pub is_anonymous: Option<bool>,
pub name: Option<String>,
pub options: Option<Vec<String>>,
pub sub_path: Option<String>,
}
Expand description
NamedVolume : NamedVolume holds information about a named volume that will be mounted into the container.
Fields§
§dest: Option<String>
Destination to mount the named volume within the container. Must be an absolute path. Path will be created if it does not exist.
is_anonymous: Option<bool>
IsAnonymous sets the named volume as anonymous even if it has a name This is used for emptyDir volumes from a kube yaml
name: Option<String>
Name is the name of the named volume to be mounted. May be empty. If empty, a new named volume with a pseudorandomly generated name will be mounted at the given destination.
options: Option<Vec<String>>
Options are options that the named volume will be mounted with.
sub_path: Option<String>
SubPath stores the sub directory of the named volume to be mounted in the container
Implementations§
source§impl NamedVolume
impl NamedVolume
sourcepub fn new() -> NamedVolume
pub fn new() -> NamedVolume
NamedVolume holds information about a named volume that will be mounted into the container.
Trait Implementations§
source§impl Clone for NamedVolume
impl Clone for NamedVolume
source§fn clone(&self) -> NamedVolume
fn clone(&self) -> NamedVolume
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NamedVolume
impl Debug for NamedVolume
source§impl Default for NamedVolume
impl Default for NamedVolume
source§fn default() -> NamedVolume
fn default() -> NamedVolume
source§impl<'de> Deserialize<'de> for NamedVolume
impl<'de> Deserialize<'de> for NamedVolume
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>,
source§impl PartialEq for NamedVolume
impl PartialEq for NamedVolume
source§fn eq(&self, other: &NamedVolume) -> bool
fn eq(&self, other: &NamedVolume) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NamedVolume
impl Serialize for NamedVolume
impl StructuralPartialEq for NamedVolume
Auto Trait Implementations§
impl Freeze for NamedVolume
impl RefUnwindSafe for NamedVolume
impl Send for NamedVolume
impl Sync for NamedVolume
impl Unpin for NamedVolume
impl UnwindSafe for NamedVolume
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)