pub enum VolumeSource {
HostPath(String),
Named(String),
Anonymous,
}Expand description
Origin of the content mounted into the container.
Determines how the runtime creates the volume and whether it survives container removal.
Variants§
HostPath(String)
Bind-mount from a host path (starts with . or / in the
manifest).
The inner String is the path as written in the manifest,
relative or absolute.
Named(String)
Named volume managed by the container runtime.
The inner String is the volume name (no . or / prefix).
Template-unsafe characters ({, }) are rejected during
resolution.
Anonymous
Anonymous volume whose lifetime is tied to the container.
Injected automatically for postgres and redis when the
manifest sets volume: true or omits the field entirely.
Trait Implementations§
Source§impl Clone for VolumeSource
impl Clone for VolumeSource
Source§fn clone(&self) -> VolumeSource
fn clone(&self) -> VolumeSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VolumeSource
impl Debug for VolumeSource
impl Eq for VolumeSource
Source§impl PartialEq for VolumeSource
impl PartialEq for VolumeSource
impl StructuralPartialEq for VolumeSource
Auto Trait Implementations§
impl Freeze for VolumeSource
impl RefUnwindSafe for VolumeSource
impl Send for VolumeSource
impl Sync for VolumeSource
impl Unpin for VolumeSource
impl UnsafeUnpin for VolumeSource
impl UnwindSafe for VolumeSource
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.