Struct k8s_openapi::v1_9::api::core::v1::EnvVar [−][src]
pub struct EnvVar { pub name: String, pub value: Option<String>, pub value_from: Option<EnvVarSource>, }
EnvVar represents an environment variable present in a Container.
Fields
name: String
Name of the environment variable. Must be a C_IDENTIFIER.
value: Option<String>
Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".
value_from: Option<EnvVarSource>
Source for the environment variable's value. Cannot be used if value is not empty.
Trait Implementations
impl Clone for EnvVar
[src]
impl Clone for EnvVar
fn clone(&self) -> EnvVar
[src]
fn clone(&self) -> EnvVar
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for EnvVar
[src]
impl Debug for EnvVar
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for EnvVar
[src]
impl Default for EnvVar
impl PartialEq for EnvVar
[src]
impl PartialEq for EnvVar
fn eq(&self, other: &EnvVar) -> bool
[src]
fn eq(&self, other: &EnvVar) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &EnvVar) -> bool
[src]
fn ne(&self, other: &EnvVar) -> bool
This method tests for !=
.
impl<'de> Deserialize<'de> for EnvVar
[src]
impl<'de> Deserialize<'de> for EnvVar
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for EnvVar
[src]
impl Serialize for EnvVar