pub struct CustomEnv {
pub env: HashMap<String, Option<String>>,
pub fallback_to_system: bool,
pub allow_variable_clearing: bool,
}Expand description
Specify env for the builder
Fields§
§env: HashMap<String, Option<String>>Custom env definition. Empty strings are treated as undefined by default
fallback_to_system: boolUse system as a fallback
allow_variable_clearing: boolAllow variable clearing by empty string or undefined values
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CustomEnv
impl<'de> Deserialize<'de> for CustomEnv
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
Auto Trait Implementations§
impl Freeze for CustomEnv
impl RefUnwindSafe for CustomEnv
impl Send for CustomEnv
impl Sync for CustomEnv
impl Unpin for CustomEnv
impl UnwindSafe for CustomEnv
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