pub struct IoK8sApiCoreV1EnvVarSource {
pub config_map_key_ref: Option<IoK8sApiCoreV1ConfigMapKeySelector>,
pub field_ref: Option<IoK8sApiCoreV1ObjectFieldSelector>,
pub resource_field_ref: Option<IoK8sApiCoreV1ResourceFieldSelector>,
pub secret_key_ref: Option<IoK8sApiCoreV1SecretKeySelector>,
}Expand description
EnvVarSource represents a source for the value of an EnvVar.
Fields§
§config_map_key_ref: Option<IoK8sApiCoreV1ConfigMapKeySelector>Selects a key of a ConfigMap.
field_ref: Option<IoK8sApiCoreV1ObjectFieldSelector>Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels['<KEY>'], metadata.annotations['<KEY>'], spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
resource_field_ref: Option<IoK8sApiCoreV1ResourceFieldSelector>Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
secret_key_ref: Option<IoK8sApiCoreV1SecretKeySelector>Selects a key of a secret in the pod’s namespace
Trait Implementations§
Source§impl Clone for IoK8sApiCoreV1EnvVarSource
impl Clone for IoK8sApiCoreV1EnvVarSource
Source§fn clone(&self) -> IoK8sApiCoreV1EnvVarSource
fn clone(&self) -> IoK8sApiCoreV1EnvVarSource
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 Debug for IoK8sApiCoreV1EnvVarSource
impl Debug for IoK8sApiCoreV1EnvVarSource
Source§impl Default for IoK8sApiCoreV1EnvVarSource
impl Default for IoK8sApiCoreV1EnvVarSource
Source§fn default() -> IoK8sApiCoreV1EnvVarSource
fn default() -> IoK8sApiCoreV1EnvVarSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IoK8sApiCoreV1EnvVarSource
impl<'de> Deserialize<'de> for IoK8sApiCoreV1EnvVarSource
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<&IoK8sApiCoreV1EnvVarSource> for IoK8sApiCoreV1EnvVarSource
impl From<&IoK8sApiCoreV1EnvVarSource> for IoK8sApiCoreV1EnvVarSource
Source§fn from(value: &IoK8sApiCoreV1EnvVarSource) -> Self
fn from(value: &IoK8sApiCoreV1EnvVarSource) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IoK8sApiCoreV1EnvVarSource
impl RefUnwindSafe for IoK8sApiCoreV1EnvVarSource
impl Send for IoK8sApiCoreV1EnvVarSource
impl Sync for IoK8sApiCoreV1EnvVarSource
impl Unpin for IoK8sApiCoreV1EnvVarSource
impl UnwindSafe for IoK8sApiCoreV1EnvVarSource
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