pub struct PermissionSource {
pub scope: String,
pub allow: BTreeSet<Capability>,
pub deny: BTreeSet<Capability>,
}Expand description
Per-scope contribution to an effective permission set.
Carries the allow and deny capabilities a single policy document declares
at one scope along the cascade chain. The scope field is a wire-format
label such as "global", "org:acme", "team:platform", or
"agent:<uuid>"; the gateway populates it from the policy’s own
PolicyScope so the renderer can show provenance without depending on the
gateway’s enum.
Fields§
§scope: StringWire-format scope label (e.g. "global", "team:platform").
allow: BTreeSet<Capability>Capabilities this scope explicitly allows.
deny: BTreeSet<Capability>Capabilities this scope explicitly denies.
Trait Implementations§
Source§impl Clone for PermissionSource
impl Clone for PermissionSource
Source§fn clone(&self) -> PermissionSource
fn clone(&self) -> PermissionSource
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 PermissionSource
impl Debug for PermissionSource
Source§impl Default for PermissionSource
impl Default for PermissionSource
Source§fn default() -> PermissionSource
fn default() -> PermissionSource
Returns the “default value” for a type. Read more
Source§impl PartialEq for PermissionSource
impl PartialEq for PermissionSource
Source§fn eq(&self, other: &PermissionSource) -> bool
fn eq(&self, other: &PermissionSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PermissionSource
Auto Trait Implementations§
impl Freeze for PermissionSource
impl RefUnwindSafe for PermissionSource
impl Send for PermissionSource
impl Sync for PermissionSource
impl Unpin for PermissionSource
impl UnsafeUnpin for PermissionSource
impl UnwindSafe for PermissionSource
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