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