pub struct PolicyRule {
pub effects: BTreeSet<&'static str>,
pub scope: Option<String>,
pub raw: String,
}Expand description
One deny <Effect…> [scope] / pure <scope> rule (AS-EFF-006). effects empty ⇒ a pure rule
(ANY effect forbidden). scope is a path segment-scope the rule applies to (None = whole unit).
Fields§
§effects: BTreeSet<&'static str>§scope: Option<String>§raw: StringTrait Implementations§
Source§impl Clone for PolicyRule
impl Clone for PolicyRule
Source§fn clone(&self) -> PolicyRule
fn clone(&self) -> PolicyRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PolicyRule
impl RefUnwindSafe for PolicyRule
impl Send for PolicyRule
impl Sync for PolicyRule
impl Unpin for PolicyRule
impl UnsafeUnpin for PolicyRule
impl UnwindSafe for PolicyRule
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