Struct k8s_openapi::api::core::v1::ConfigMapKeySelector
source · pub struct ConfigMapKeySelector {
pub key: String,
pub name: Option<String>,
pub optional: Option<bool>,
}
Expand description
Selects a key from a ConfigMap.
Fields§
§key: String
The 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 ConfigMapKeySelector
impl Clone for ConfigMapKeySelector
source§fn clone(&self) -> ConfigMapKeySelector
fn clone(&self) -> ConfigMapKeySelector
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 ConfigMapKeySelector
impl Debug for ConfigMapKeySelector
source§impl DeepMerge for ConfigMapKeySelector
impl DeepMerge for ConfigMapKeySelector
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for ConfigMapKeySelector
impl Default for ConfigMapKeySelector
source§fn default() -> ConfigMapKeySelector
fn default() -> ConfigMapKeySelector
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ConfigMapKeySelector
impl<'de> Deserialize<'de> for ConfigMapKeySelector
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 ConfigMapKeySelector
impl PartialEq for ConfigMapKeySelector
source§fn eq(&self, other: &ConfigMapKeySelector) -> bool
fn eq(&self, other: &ConfigMapKeySelector) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ConfigMapKeySelector
impl Serialize for ConfigMapKeySelector
impl StructuralPartialEq for ConfigMapKeySelector
Auto Trait Implementations§
impl RefUnwindSafe for ConfigMapKeySelector
impl Send for ConfigMapKeySelector
impl Sync for ConfigMapKeySelector
impl Unpin for ConfigMapKeySelector
impl UnwindSafe for ConfigMapKeySelector
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