pub struct SecretKeySelector {
pub key: String,
pub name: 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: String
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. 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§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