Struct podman_api::models::NamedVolume [−][src]
pub struct NamedVolume {
pub dest: Option<String>,
pub name: Option<String>,
pub options: Option<Vec<String, Global>>,
}
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.
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, Global>>
Options are options that the named volume will be mounted with.
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<NamedVolume, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
Auto Trait Implementations
impl RefUnwindSafe for NamedVolume
impl Send for NamedVolume
impl Sync for NamedVolume
impl Unpin for NamedVolume
impl UnwindSafe for NamedVolume
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more