pub struct AuthorityPolicyPatch {
pub allow: Option<CapabilitySet>,
pub deny: CapabilitySet,
pub required: CapabilitySet,
}Expand description
Capability allow/deny/require override at one policy level.
allow = None inherits the current authority. allow = Some(empty) denies
every capability. Denials accumulate and can never be re-granted by a
descendant patch.
Fields§
§allow: Option<CapabilitySet>Optional allow-list intersection at this level.
deny: CapabilitySetCapabilities removed at this level and below.
required: CapabilitySetCapabilities that must remain after diminution before evaluation.
Trait Implementations§
Source§impl Clone for AuthorityPolicyPatch
impl Clone for AuthorityPolicyPatch
Source§fn clone(&self) -> AuthorityPolicyPatch
fn clone(&self) -> AuthorityPolicyPatch
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 moreSource§impl Debug for AuthorityPolicyPatch
impl Debug for AuthorityPolicyPatch
Source§impl Default for AuthorityPolicyPatch
impl Default for AuthorityPolicyPatch
Source§fn default() -> AuthorityPolicyPatch
fn default() -> AuthorityPolicyPatch
Returns the “default value” for a type. Read more
impl Eq for AuthorityPolicyPatch
Source§impl PartialEq for AuthorityPolicyPatch
impl PartialEq for AuthorityPolicyPatch
impl StructuralPartialEq for AuthorityPolicyPatch
Auto Trait Implementations§
impl Freeze for AuthorityPolicyPatch
impl RefUnwindSafe for AuthorityPolicyPatch
impl Send for AuthorityPolicyPatch
impl Sync for AuthorityPolicyPatch
impl Unpin for AuthorityPolicyPatch
impl UnsafeUnpin for AuthorityPolicyPatch
impl UnwindSafe for AuthorityPolicyPatch
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