pub struct PoolerTemplateSpecContainersEnv {
pub name: String,
pub value: Option<String>,
pub value_from: Option<PoolerTemplateSpecContainersEnvValueFrom>,
}Expand description
EnvVar represents an environment variable present in a Container.
Fields§
§name: StringName 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 “”.
value_from: Option<PoolerTemplateSpecContainersEnvValueFrom>Source for the environment variable’s value. Cannot be used if value is not empty.
Trait Implementations§
source§impl Clone for PoolerTemplateSpecContainersEnv
impl Clone for PoolerTemplateSpecContainersEnv
source§fn clone(&self) -> PoolerTemplateSpecContainersEnv
fn clone(&self) -> PoolerTemplateSpecContainersEnv
Returns a copy 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 Default for PoolerTemplateSpecContainersEnv
impl Default for PoolerTemplateSpecContainersEnv
source§fn default() -> PoolerTemplateSpecContainersEnv
fn default() -> PoolerTemplateSpecContainersEnv
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PoolerTemplateSpecContainersEnv
impl<'de> Deserialize<'de> for PoolerTemplateSpecContainersEnv
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 JsonSchema for PoolerTemplateSpecContainersEnv
impl JsonSchema for PoolerTemplateSpecContainersEnv
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for PoolerTemplateSpecContainersEnv
impl RefUnwindSafe for PoolerTemplateSpecContainersEnv
impl Send for PoolerTemplateSpecContainersEnv
impl Sync for PoolerTemplateSpecContainersEnv
impl Unpin for PoolerTemplateSpecContainersEnv
impl UnwindSafe for PoolerTemplateSpecContainersEnv
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