pub struct CheClusterDatabasePostgresEnv {
pub name: String,
pub value: Option<String>,
pub value_from: Option<CheClusterDatabasePostgresEnvValueFrom>,
}Expand description
EnvVar represents an environment variable present in a Container.
Fields§
§name: StringName of the environment variable. May consist of any printable ASCII characters except ‘=’.
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<CheClusterDatabasePostgresEnvValueFrom>Source for the environment variable’s value. Cannot be used if value is not empty.
Trait Implementations§
Source§impl Clone for CheClusterDatabasePostgresEnv
impl Clone for CheClusterDatabasePostgresEnv
Source§fn clone(&self) -> CheClusterDatabasePostgresEnv
fn clone(&self) -> CheClusterDatabasePostgresEnv
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 Default for CheClusterDatabasePostgresEnv
impl Default for CheClusterDatabasePostgresEnv
Source§fn default() -> CheClusterDatabasePostgresEnv
fn default() -> CheClusterDatabasePostgresEnv
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CheClusterDatabasePostgresEnv
impl<'de> Deserialize<'de> for CheClusterDatabasePostgresEnv
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 PartialEq for CheClusterDatabasePostgresEnv
impl PartialEq for CheClusterDatabasePostgresEnv
Source§fn eq(&self, other: &CheClusterDatabasePostgresEnv) -> bool
fn eq(&self, other: &CheClusterDatabasePostgresEnv) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CheClusterDatabasePostgresEnv
Auto Trait Implementations§
impl Freeze for CheClusterDatabasePostgresEnv
impl RefUnwindSafe for CheClusterDatabasePostgresEnv
impl Send for CheClusterDatabasePostgresEnv
impl Sync for CheClusterDatabasePostgresEnv
impl Unpin for CheClusterDatabasePostgresEnv
impl UnwindSafe for CheClusterDatabasePostgresEnv
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