pub struct PolicyRule {
pub effects: BTreeSet<&'static str>,
pub scope: Option<String>,
pub unknown_classes: BTreeSet<ReasonClass>,
pub net_classes: BTreeSet<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>§unknown_classes: BTreeSet<ReasonClass>Reason-class filter on an Unknown membership (REASON-SCOPED-UNKNOWN-DESIGN.md): empty ⇒
Unknown[*] (any reason — the bare form); non-empty ⇒ the Unknown hit fires ONLY for a fn whose
(transitive) reason classes include one of these. Ignored when effects doesn’t contain Unknown.
net_classes: BTreeSet<String>Destination-class filter on a Net membership (NET-DESTINATION-CLASS-DESIGN.md): empty ⇒ Net[*]
(any destination — the bare form); non-empty ⇒ the Net hit fires ONLY for a fn whose (transitive)
destination classes include one of these. Ignored when effects doesn’t contain Net.
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