Struct k8s_openapi::v1_7::kubernetes::pkg::api::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 EnvVarfn clone(&self) -> EnvVar[src]
fn clone(&self) -> EnvVarReturns 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 EnvVarfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for EnvVar[src]
impl Default for EnvVarimpl PartialEq for EnvVar[src]
impl PartialEq for EnvVarfn eq(&self, other: &EnvVar) -> bool[src]
fn eq(&self, other: &EnvVar) -> boolThis 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) -> boolThis method tests for !=.
impl<'de> Deserialize<'de> for EnvVar[src]
impl<'de> Deserialize<'de> for EnvVarfn 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