pub enum MountTypeInlineItem {
Bind,
Volume,
Tmpfs,
Npipe,
Cluster,
}
Expand description
The mount type. Available types:
bind
Mounts a file or directory from the host into the container. Must exist prior to creating the container.volume
Creates a volume with the given name and options (or uses a pre-existing volume with the same name and options). These are not removed when the container is removed.tmpfs
Create a tmpfs with the given options. The mount source cannot be specified for tmpfs.npipe
Mounts a named pipe from the host into the container. Must exist prior to creating the container.cluster
a Swarm cluster volume
Variants§
Trait Implementations§
Source§impl AsRef<str> for MountTypeInlineItem
impl AsRef<str> for MountTypeInlineItem
Source§impl Clone for MountTypeInlineItem
impl Clone for MountTypeInlineItem
Source§fn clone(&self) -> MountTypeInlineItem
fn clone(&self) -> MountTypeInlineItem
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 MountTypeInlineItem
impl Debug for MountTypeInlineItem
Source§impl<'de> Deserialize<'de> for MountTypeInlineItem
impl<'de> Deserialize<'de> for MountTypeInlineItem
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MountTypeInlineItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MountTypeInlineItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MountTypeInlineItem
impl Display for MountTypeInlineItem
Source§impl PartialEq for MountTypeInlineItem
impl PartialEq for MountTypeInlineItem
Source§impl Serialize for MountTypeInlineItem
impl Serialize for MountTypeInlineItem
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 MountTypeInlineItem
Auto Trait Implementations§
impl Freeze for MountTypeInlineItem
impl RefUnwindSafe for MountTypeInlineItem
impl Send for MountTypeInlineItem
impl Sync for MountTypeInlineItem
impl Unpin for MountTypeInlineItem
impl UnwindSafe for MountTypeInlineItem
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