pub struct ServiceVolumeSettings {
pub type_: VolumeType,
pub read_only: Option<bool>,
pub source: Option<String>,
pub target: String,
pub consistency: Option<String>,
pub bind: Option<Bind>,
pub image: Option<ImageVolumeSettings>,
pub tmpfs: Option<TmpfsSettings>,
pub volume: Option<VolumeSettings>,
}Expand description
Configuration for a service volume.
See more: https://docs.docker.com/reference/compose-file/services/#long-syntax-6
Fields§
§type_: VolumeTypeThe mount type.
read_only: Option<bool>Flag to set the volume as read-only.
source: Option<String>The source of the mount, a path on the host for a bind mount, a docker image reference for an image mount, or the name of a volume defined in the top-level volumes key. Not applicable for a tmpfs mount.
target: StringThe path in the container where the volume is mounted.
consistency: Option<String>The consistency requirements for the mount. Available values are platform specific.
bind: Option<Bind>Configuration specific to bind mounts.
image: Option<ImageVolumeSettings>Configuration specific to image mounts.
tmpfs: Option<TmpfsSettings>/// Configuration specific to tmpfs mounts.
volume: Option<VolumeSettings>Configuration specific to volume mounts.
Trait Implementations§
Source§impl Clone for ServiceVolumeSettings
impl Clone for ServiceVolumeSettings
Source§fn clone(&self) -> ServiceVolumeSettings
fn clone(&self) -> ServiceVolumeSettings
Returns a duplicate 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 ServiceVolumeSettings
impl Debug for ServiceVolumeSettings
Source§impl<'de> Deserialize<'de> for ServiceVolumeSettings
impl<'de> Deserialize<'de> for ServiceVolumeSettings
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
Source§impl PartialEq for ServiceVolumeSettings
impl PartialEq for ServiceVolumeSettings
Source§impl Serialize for ServiceVolumeSettings
impl Serialize for ServiceVolumeSettings
impl Eq for ServiceVolumeSettings
impl StructuralPartialEq for ServiceVolumeSettings
Auto Trait Implementations§
impl Freeze for ServiceVolumeSettings
impl RefUnwindSafe for ServiceVolumeSettings
impl Send for ServiceVolumeSettings
impl Sync for ServiceVolumeSettings
impl Unpin for ServiceVolumeSettings
impl UnsafeUnpin for ServiceVolumeSettings
impl UnwindSafe for ServiceVolumeSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.