pub struct EnvVar {
pub name: Option<String>,
pub value: Option<String>,
pub value_from: Option<EnvVarSource>,
}Fields§
§name: Option<String>Name of the environment variable. Must be a C_IDENTIFIER.
value: Option<String>Variable references $(VAR_NAME) are expanded using the previously 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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". +optional
value_from: Option<EnvVarSource>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EnvVar
impl<'de> Deserialize<'de> for EnvVar
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>,
Source§impl FromStr for EnvVar
Converts Query Parameters representation (style=form, explode=false) to a EnvVar value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for EnvVar
Converts Query Parameters representation (style=form, explode=false) to a EnvVar value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl ToString for EnvVar
Converts the EnvVar value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for EnvVar
Converts the EnvVar value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer