pub struct AgentScope {
pub capabilities: Vec<Capability>,
pub expires_at: Option<i64>,
}Expand description
Delegator-anchored scope/expiry for a delegated agent (Epic E.7).
Carried as a Seal::Digest in the delegator’s anchoring ixn — authority
comes from the party that controls the delegator key, never agent-self-asserted.
The digest value is a structured marker string (not a SAID) namespaced under
agentscope:, so it never collides with a real digest, a revocation (bare
prefix), or an agent: role marker. Advisory authorization; the principled
upgrade is a targeted ACDC (Epic F).
Fields§
§capabilities: Vec<Capability>Capabilities granted to the agent (empty = unrestricted). Capability strings
may contain : (e.g. repo:foo) but not , (the list separator).
expires_at: Option<i64>Expiry as Unix epoch seconds; None = never expires.
Trait Implementations§
Source§impl Clone for AgentScope
impl Clone for AgentScope
Source§fn clone(&self) -> AgentScope
fn clone(&self) -> AgentScope
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 AgentScope
impl Debug for AgentScope
Source§impl Default for AgentScope
impl Default for AgentScope
Source§fn default() -> AgentScope
fn default() -> AgentScope
Returns the “default value” for a type. Read more
impl Eq for AgentScope
Source§impl PartialEq for AgentScope
impl PartialEq for AgentScope
impl StructuralPartialEq for AgentScope
Auto Trait Implementations§
impl Freeze for AgentScope
impl RefUnwindSafe for AgentScope
impl Send for AgentScope
impl Sync for AgentScope
impl Unpin for AgentScope
impl UnsafeUnpin for AgentScope
impl UnwindSafe for AgentScope
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.