Struct k8s_openapi::api::storage::v1::VolumeAttachmentSource
source · 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 PersistenVolumes can be attached via external attacher, in 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)