Struct k8s_openapi_ext::corev1::ConfigMapProjection
source · [−]pub struct ConfigMapProjection {
pub items: Option<Vec<KeyToPath, Global>>,
pub name: Option<String>,
pub optional: Option<bool>,
}
Expand description
Adapts a ConfigMap into a projected volume.
The contents of the target ConfigMap’s Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.
Fields
items: Option<Vec<KeyToPath, Global>>
items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the ‘..’ path or start with ‘..’.
name: Option<String>
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
optional: Option<bool>
optional specify whether the ConfigMap or its keys must be defined
Trait Implementations
sourceimpl Clone for ConfigMapProjection
impl Clone for ConfigMapProjection
sourcefn clone(&self) -> ConfigMapProjection
fn clone(&self) -> ConfigMapProjection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ConfigMapProjection
impl Debug for ConfigMapProjection
sourceimpl Default for ConfigMapProjection
impl Default for ConfigMapProjection
sourcefn default() -> ConfigMapProjection
fn default() -> ConfigMapProjection
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ConfigMapProjection
impl<'de> Deserialize<'de> for ConfigMapProjection
sourcefn deserialize<D>(
deserializer: D
) -> Result<ConfigMapProjection, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<ConfigMapProjection, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ConfigMapProjection> for ConfigMapProjection
impl PartialEq<ConfigMapProjection> for ConfigMapProjection
sourcefn eq(&self, other: &ConfigMapProjection) -> bool
fn eq(&self, other: &ConfigMapProjection) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for ConfigMapProjection
impl Serialize for ConfigMapProjection
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 ConfigMapProjection
Auto Trait Implementations
impl RefUnwindSafe for ConfigMapProjection
impl Send for ConfigMapProjection
impl Sync for ConfigMapProjection
impl Unpin for ConfigMapProjection
impl UnwindSafe for ConfigMapProjection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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