pub struct VolumeAttachmentSource {
pub inline_volume_spec: Option<PersistentVolumeSpec>,
pub persistent_volume_name: Option<String>,
}
Expand description
VolumeAttachmentSource represents a volume that should be attached. Right now only PersistentVolumes can be attached via external attacher, in the future we may allow also inline volumes in pods. Exactly one member can be set.
Fields§
§inline_volume_spec: Option<PersistentVolumeSpec>
inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod’s inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod’s inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature.
persistent_volume_name: Option<String>
persistentVolumeName represents the name of the persistent volume to attach.
Trait Implementations§
Source§impl Clone for VolumeAttachmentSource
impl Clone for VolumeAttachmentSource
Source§fn clone(&self) -> VolumeAttachmentSource
fn clone(&self) -> VolumeAttachmentSource
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 VolumeAttachmentSource
impl Debug for VolumeAttachmentSource
Source§impl DeepMerge for VolumeAttachmentSource
impl DeepMerge for VolumeAttachmentSource
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for VolumeAttachmentSource
impl Default for VolumeAttachmentSource
Source§fn default() -> VolumeAttachmentSource
fn default() -> VolumeAttachmentSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VolumeAttachmentSource
impl<'de> Deserialize<'de> for VolumeAttachmentSource
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 VolumeAttachmentSource
impl PartialEq for VolumeAttachmentSource
Source§impl Serialize for VolumeAttachmentSource
impl Serialize for VolumeAttachmentSource
impl StructuralPartialEq for VolumeAttachmentSource
Auto Trait Implementations§
impl Freeze for VolumeAttachmentSource
impl RefUnwindSafe for VolumeAttachmentSource
impl Send for VolumeAttachmentSource
impl Sync for VolumeAttachmentSource
impl Unpin for VolumeAttachmentSource
impl UnwindSafe for VolumeAttachmentSource
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