pub enum VolumeMountType {
Bind,
Volume,
Tmpfs,
}Expand description
Volume mount kind discriminator.
Selects which [zlayer_spec::StorageSpec] variant VolumeMount is
translated into by [build_service_spec]. When omitted on the wire,
defaults to VolumeMountType::Bind (legacy behavior).
Variants§
Bind
Host-path bind mount. source is an absolute host path.
Volume
Named persistent volume. source is the volume name (managed by
/api/v1/volumes), not a host path.
Tmpfs
Memory-backed tmpfs mount. source must be empty/omitted.
Trait Implementations§
Source§impl Clone for VolumeMountType
impl Clone for VolumeMountType
Source§fn clone(&self) -> VolumeMountType
fn clone(&self) -> VolumeMountType
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 ComposeSchema for VolumeMountType
impl ComposeSchema for VolumeMountType
Source§impl Debug for VolumeMountType
impl Debug for VolumeMountType
Source§impl<'de> Deserialize<'de> for VolumeMountType
impl<'de> Deserialize<'de> for VolumeMountType
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 VolumeMountType
impl PartialEq for VolumeMountType
Source§impl Serialize for VolumeMountType
impl Serialize for VolumeMountType
Source§impl ToSchema for VolumeMountType
impl ToSchema for VolumeMountType
impl Copy for VolumeMountType
impl Eq for VolumeMountType
impl StructuralPartialEq for VolumeMountType
Auto Trait Implementations§
impl Freeze for VolumeMountType
impl RefUnwindSafe for VolumeMountType
impl Send for VolumeMountType
impl Sync for VolumeMountType
impl Unpin for VolumeMountType
impl UnsafeUnpin for VolumeMountType
impl UnwindSafe for VolumeMountType
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.