pub struct EnvPolicy {
pub allowed_vars: Vec<String>,
pub denied_vars: Vec<String>,
}Expand description
Environment variable access policy.
Fields§
§allowed_vars: Vec<String>Allowed environment variable names.
denied_vars: Vec<String>Variables that are never accessible (hardcoded deny list).
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