pub struct EnvPolicy {
pub allow: Vec<String>,
pub set: HashMap<String, String>,
}Expand description
Environment policy for the child.
Fields§
§allow: Vec<String>Var names the child may receive from the host env.
set: HashMap<String, String>Explicit var=value pairs to set.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EnvPolicy
impl<'de> Deserialize<'de> for EnvPolicy
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 EnvPolicy
impl RefUnwindSafe for EnvPolicy
impl Send for EnvPolicy
impl Sync for EnvPolicy
impl Unpin for EnvPolicy
impl UnsafeUnpin for EnvPolicy
impl UnwindSafe for EnvPolicy
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