pub struct IoK8sApiCoreV1SecretKeySelector {
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 IoK8sApiCoreV1SecretKeySelector
impl Clone for IoK8sApiCoreV1SecretKeySelector
Source§fn clone(&self) -> IoK8sApiCoreV1SecretKeySelector
fn clone(&self) -> IoK8sApiCoreV1SecretKeySelector
Returns a duplicate 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 Default for IoK8sApiCoreV1SecretKeySelector
impl Default for IoK8sApiCoreV1SecretKeySelector
Source§fn default() -> IoK8sApiCoreV1SecretKeySelector
fn default() -> IoK8sApiCoreV1SecretKeySelector
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IoK8sApiCoreV1SecretKeySelector
impl<'de> Deserialize<'de> for IoK8sApiCoreV1SecretKeySelector
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 From<&IoK8sApiCoreV1SecretKeySelector> for IoK8sApiCoreV1SecretKeySelector
impl From<&IoK8sApiCoreV1SecretKeySelector> for IoK8sApiCoreV1SecretKeySelector
Source§fn from(value: &IoK8sApiCoreV1SecretKeySelector) -> Self
fn from(value: &IoK8sApiCoreV1SecretKeySelector) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IoK8sApiCoreV1SecretKeySelector
impl RefUnwindSafe for IoK8sApiCoreV1SecretKeySelector
impl Send for IoK8sApiCoreV1SecretKeySelector
impl Sync for IoK8sApiCoreV1SecretKeySelector
impl Unpin for IoK8sApiCoreV1SecretKeySelector
impl UnwindSafe for IoK8sApiCoreV1SecretKeySelector
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