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>,
}
Available on crate feature
v5
only.Expand description
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
Trait Implementations§
Source§impl Debug for NamedVolume
impl Debug for NamedVolume
Source§impl Default for NamedVolume
impl Default for NamedVolume
Source§fn default() -> NamedVolume
fn default() -> NamedVolume
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more