pub struct ComponentDefinitionVarsValueFromConfigMapKeyRef {
pub key: String,
pub name: Option<String>,
pub optional: Option<bool>,
}Expand description
Selects a key of a ConfigMap.
Fields§
§key: StringThe key to select.
name: Option<String>Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
optional: Option<bool>Specify whether the ConfigMap or its key must be defined
Trait Implementations§
Source§impl Clone for ComponentDefinitionVarsValueFromConfigMapKeyRef
impl Clone for ComponentDefinitionVarsValueFromConfigMapKeyRef
Source§fn clone(&self) -> ComponentDefinitionVarsValueFromConfigMapKeyRef
fn clone(&self) -> ComponentDefinitionVarsValueFromConfigMapKeyRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ComponentDefinitionVarsValueFromConfigMapKeyRef
impl Default for ComponentDefinitionVarsValueFromConfigMapKeyRef
Source§fn default() -> ComponentDefinitionVarsValueFromConfigMapKeyRef
fn default() -> ComponentDefinitionVarsValueFromConfigMapKeyRef
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ComponentDefinitionVarsValueFromConfigMapKeyRef
impl<'de> Deserialize<'de> for ComponentDefinitionVarsValueFromConfigMapKeyRef
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
impl StructuralPartialEq for ComponentDefinitionVarsValueFromConfigMapKeyRef
Auto Trait Implementations§
impl Freeze for ComponentDefinitionVarsValueFromConfigMapKeyRef
impl RefUnwindSafe for ComponentDefinitionVarsValueFromConfigMapKeyRef
impl Send for ComponentDefinitionVarsValueFromConfigMapKeyRef
impl Sync for ComponentDefinitionVarsValueFromConfigMapKeyRef
impl Unpin for ComponentDefinitionVarsValueFromConfigMapKeyRef
impl UnsafeUnpin for ComponentDefinitionVarsValueFromConfigMapKeyRef
impl UnwindSafe for ComponentDefinitionVarsValueFromConfigMapKeyRef
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