pub struct EffectivePermissions {
pub merged: CapabilitySet,
pub sources: Vec<PermissionSource>,
}Expand description
Effective capability set for a single agent, with cascade provenance.
merged is the result of folding merge_capabilities left-to-right over
every policy document that applies to the agent (Global → Org → Team →
Agent → Tool). sources records each contributing scope’s individual
allow/deny, in cascade order, so consumers (CLI, dashboard) can show
where each capability decision originates.
sources may be empty if no policy in the cascade declares a
capabilities block, in which case merged is also empty (no allow-list
restriction).
Fields§
§merged: CapabilitySetMerged result after most-restrictive-wins cascade.
sources: Vec<PermissionSource>Per-scope contribution, in cascade order (broadest → narrowest).
Trait Implementations§
Source§impl Clone for EffectivePermissions
impl Clone for EffectivePermissions
Source§fn clone(&self) -> EffectivePermissions
fn clone(&self) -> EffectivePermissions
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 EffectivePermissions
impl Debug for EffectivePermissions
Source§impl Default for EffectivePermissions
impl Default for EffectivePermissions
Source§fn default() -> EffectivePermissions
fn default() -> EffectivePermissions
Returns the “default value” for a type. Read more
Source§impl PartialEq for EffectivePermissions
impl PartialEq for EffectivePermissions
Source§fn eq(&self, other: &EffectivePermissions) -> bool
fn eq(&self, other: &EffectivePermissions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EffectivePermissions
Auto Trait Implementations§
impl Freeze for EffectivePermissions
impl RefUnwindSafe for EffectivePermissions
impl Send for EffectivePermissions
impl Sync for EffectivePermissions
impl Unpin for EffectivePermissions
impl UnsafeUnpin for EffectivePermissions
impl UnwindSafe for EffectivePermissions
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