Struct k8s_openapi_ext::storagev1::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>
Name of the persistent volume to attach.
Trait Implementations
sourceimpl Clone for VolumeAttachmentSource
impl Clone for VolumeAttachmentSource
sourcefn clone(&self) -> VolumeAttachmentSource
fn clone(&self) -> VolumeAttachmentSource
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for VolumeAttachmentSource
impl Debug for VolumeAttachmentSource
sourceimpl DeepMerge for VolumeAttachmentSource
impl DeepMerge for VolumeAttachmentSource
sourcefn merge_from(&mut self, other: VolumeAttachmentSource)
fn merge_from(&mut self, other: VolumeAttachmentSource)
Merge
other
into self
.sourceimpl Default for VolumeAttachmentSource
impl Default for VolumeAttachmentSource
sourcefn default() -> VolumeAttachmentSource
fn default() -> VolumeAttachmentSource
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for VolumeAttachmentSource
impl<'de> Deserialize<'de> for VolumeAttachmentSource
sourcefn deserialize<D>(
deserializer: D
) -> Result<VolumeAttachmentSource, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<VolumeAttachmentSource, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<VolumeAttachmentSource> for VolumeAttachmentSource
impl PartialEq<VolumeAttachmentSource> for VolumeAttachmentSource
sourcefn eq(&self, other: &VolumeAttachmentSource) -> bool
fn eq(&self, other: &VolumeAttachmentSource) -> bool
sourceimpl Serialize for VolumeAttachmentSource
impl Serialize for VolumeAttachmentSource
sourcefn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for VolumeAttachmentSource
Auto Trait Implementations
impl RefUnwindSafe for VolumeAttachmentSource
impl Send for VolumeAttachmentSource
impl Sync for VolumeAttachmentSource
impl Unpin for VolumeAttachmentSource
impl UnwindSafe for VolumeAttachmentSource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more