pub struct AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef {
pub key: String,
pub name: Option<String>,
pub optional: Option<bool>,
}Expand description
Selects a key of a secret in the pod’s namespace
Fields§
§key: StringThe key of the secret to select from. Must be a valid secret key.
name: Option<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 AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef
impl Clone for AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef
Source§fn clone(&self) -> AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef
fn clone(&self) -> AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef
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 AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef
impl Default for AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef
Source§fn default() -> AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef
fn default() -> AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef
impl<'de> Deserialize<'de> for AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef
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 AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef
impl PartialEq for AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef
Source§fn eq(
&self,
other: &AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef,
) -> bool
fn eq( &self, other: &AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef, ) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef
Auto Trait Implementations§
impl Freeze for AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef
impl RefUnwindSafe for AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef
impl Send for AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef
impl Sync for AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef
impl Unpin for AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef
impl UnsafeUnpin for AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef
impl UnwindSafe for AmazonCloudWatchAgentInitContainersEnvValueFromSecretKeyRef
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