pub struct AgentScope {
pub operations: BTreeSet<Operation>,
pub projects: Filter,
pub environments: Filter,
}Expand description
The bounded capability a session operates under (§3.2).
Fields§
§operations: BTreeSet<Operation>Operation axes this session may perform at all.
projects: FilterWhich projects are addressable (None project = the global vault).
environments: FilterWhich environments are addressable.
Implementations§
Source§impl AgentScope
impl AgentScope
Sourcepub fn full() -> Self
pub fn full() -> Self
The unrestricted scope — every operation, every project/environment. The local CLI/UI operate under this; MCP sessions get something narrower.
Sourcepub fn metadata_only() -> Self
pub fn metadata_only() -> Self
A metadata-only scope (diagnose without any value flow) — §3.2.
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
impl Eq for AgentScope
Source§impl PartialEq for AgentScope
impl PartialEq for AgentScope
Source§fn eq(&self, other: &AgentScope) -> bool
fn eq(&self, other: &AgentScope) -> bool
Tests for
self and other values to be equal, and is used by ==.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