pub enum EnvPolicy {
Scrubbed,
Inherit,
Vars(Vec<String>),
}Expand description
Environment forwarding policy. Scrubbed is the default and matches the
allow-list used by major sandboxing tools.
Variants§
Scrubbed
Forward only HOME, USER, PATH, LANG, LC_*, TERM, SHELL.
Inherit
Forward the full inherited environment. Use sparingly; this is how
AWS_* or GITHUB_TOKEN would leak into a curated tool node.
Vars(Vec<String>)
Explicit allow-list of variable names.
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