pub struct InstrumentationPythonEnv {
pub name: String,
pub value: Option<String>,
pub value_from: Option<InstrumentationPythonEnvValueFrom>,
}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<InstrumentationPythonEnvValueFrom>Source for the environment variable’s value. Cannot be used if value is not empty.
Trait Implementations§
Source§impl Clone for InstrumentationPythonEnv
impl Clone for InstrumentationPythonEnv
Source§fn clone(&self) -> InstrumentationPythonEnv
fn clone(&self) -> InstrumentationPythonEnv
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstrumentationPythonEnv
impl Debug for InstrumentationPythonEnv
Source§impl Default for InstrumentationPythonEnv
impl Default for InstrumentationPythonEnv
Source§fn default() -> InstrumentationPythonEnv
fn default() -> InstrumentationPythonEnv
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InstrumentationPythonEnv
impl<'de> Deserialize<'de> for InstrumentationPythonEnv
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 InstrumentationPythonEnv
impl PartialEq for InstrumentationPythonEnv
Source§fn eq(&self, other: &InstrumentationPythonEnv) -> bool
fn eq(&self, other: &InstrumentationPythonEnv) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InstrumentationPythonEnv
impl Serialize for InstrumentationPythonEnv
impl StructuralPartialEq for InstrumentationPythonEnv
Auto Trait Implementations§
impl Freeze for InstrumentationPythonEnv
impl RefUnwindSafe for InstrumentationPythonEnv
impl Send for InstrumentationPythonEnv
impl Sync for InstrumentationPythonEnv
impl Unpin for InstrumentationPythonEnv
impl UnsafeUnpin for InstrumentationPythonEnv
impl UnwindSafe for InstrumentationPythonEnv
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