pub struct Access {
pub default: Effect,
pub deny: Vec<Rule>,
pub allow: Vec<Rule>,
}Expand description
The rules for one kind of access, applied in order: a matching deny rule
denies; otherwise a matching allow rule allows; otherwise default.
Fields§
§default: EffectThe effect when no rule matches.
deny: Vec<Rule>Rules that deny; an allow never overrides them.
allow: Vec<Rule>Rules that allow.
Trait Implementations§
impl Eq for Access
impl StructuralPartialEq for Access
Auto Trait Implementations§
impl Freeze for Access
impl RefUnwindSafe for Access
impl Send for Access
impl Sync for Access
impl Unpin for Access
impl UnsafeUnpin for Access
impl UnwindSafe for Access
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