pub struct NamedVolume {
pub dest: Option<String>,
pub is_anonymous: Option<bool>,
pub name: Option<String>,
pub options: Option<Vec<String>>,
}
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.
Trait Implementations§
Source§impl Clone for NamedVolume
impl Clone for NamedVolume
Source§fn clone(&self) -> NamedVolume
fn clone(&self) -> NamedVolume
Returns a copy 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 NamedVolume
impl Debug for NamedVolume
Source§impl<'de> Deserialize<'de> for NamedVolume
impl<'de> Deserialize<'de> for NamedVolume
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NamedVolume, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NamedVolume, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NamedVolume
impl PartialEq for NamedVolume
Source§impl Serialize for NamedVolume
impl Serialize for NamedVolume
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Mutably borrows from an owned value. Read more