pub struct EffectPolicy {
pub hosts: Vec<String>,
pub paths: Vec<String>,
pub keys: Vec<String>,
}Expand description
Runtime policy for a single effect namespace.
Fields§
§hosts: Vec<String>Allowed HTTP hosts (exact or wildcard *.domain).
paths: Vec<String>Allowed filesystem paths (exact or recursive /**).
keys: Vec<String>Allowed environment variable keys (exact or wildcard PREFIX_*).
Trait Implementations§
Source§impl Clone for EffectPolicy
impl Clone for EffectPolicy
Source§fn clone(&self) -> EffectPolicy
fn clone(&self) -> EffectPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EffectPolicy
impl RefUnwindSafe for EffectPolicy
impl Send for EffectPolicy
impl Sync for EffectPolicy
impl Unpin for EffectPolicy
impl UnsafeUnpin for EffectPolicy
impl UnwindSafe for EffectPolicy
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