pub struct EnvVar {
pub name: String,
pub value: String,
}
Expand description
An environment variable with a name and a value.
It can be constructed from a (&str, &str)
.
§Examples:
use zombienet_configuration::shared::node::EnvVar;
let simple_var: EnvVar = ("FOO", "BAR").into();
assert_eq!(
simple_var,
EnvVar {
name: "FOO".into(),
value: "BAR".into()
}
)
Fields§
§name: String
The name of the environment variable.
value: String
The value of the environment variable.
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for EnvVar
Auto Trait Implementations§
impl Freeze for EnvVar
impl RefUnwindSafe for EnvVar
impl Send for EnvVar
impl Sync for EnvVar
impl Unpin for EnvVar
impl UnwindSafe for EnvVar
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