pub struct GrantPolicy {
pub base: CapabilitySet,
pub taint_resilient: CapabilitySet,
}Expand description
The agent’s configured capability policy — the operator-controlled half of grant derivation.
Both fields come from cluster config (the Agent custom resource), unreachable from within a conversation or the request path.
Fields§
§base: CapabilitySetThe capabilities the agent’s policy grants on a clean context.
taint_resilient: CapabilitySetOperator-declared capabilities that survive the taint subtraction for
this agent’s conversations (the generalization of the trusted-egress
flag: how an unattended routine keeps posting after it reads).
Default empty. Never grants beyond Self::base.
Trait Implementations§
Source§impl Clone for GrantPolicy
impl Clone for GrantPolicy
Source§fn clone(&self) -> GrantPolicy
fn clone(&self) -> GrantPolicy
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 moreimpl Copy for GrantPolicy
Source§impl Debug for GrantPolicy
impl Debug for GrantPolicy
Source§impl Default for GrantPolicy
impl Default for GrantPolicy
impl Eq for GrantPolicy
Source§impl PartialEq for GrantPolicy
impl PartialEq for GrantPolicy
Source§fn eq(&self, other: &GrantPolicy) -> bool
fn eq(&self, other: &GrantPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GrantPolicy
Auto Trait Implementations§
impl Freeze for GrantPolicy
impl RefUnwindSafe for GrantPolicy
impl Send for GrantPolicy
impl Sync for GrantPolicy
impl Unpin for GrantPolicy
impl UnsafeUnpin for GrantPolicy
impl UnwindSafe for GrantPolicy
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