pub struct AllowRule {
pub effect: &'static str,
pub scope: Option<String>,
pub literals: BTreeSet<String>,
pub raw: String,
}Expand description
One allow <Effect> [in <scope>] <literal>… rule (AS-EFF-008). The effect is one of the three
that carry a literal surface (Net/Exec/Fs); a function in scope performing it may reach
ONLY the listed literals. Matching is effect-specific (literal_allowed).
Fields§
§effect: &'static str§scope: Option<String>§literals: BTreeSet<String>§raw: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for AllowRule
impl RefUnwindSafe for AllowRule
impl Send for AllowRule
impl Sync for AllowRule
impl Unpin for AllowRule
impl UnsafeUnpin for AllowRule
impl UnwindSafe for AllowRule
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