pub enum CallerScope {
Own,
OwnPlusShared,
Global,
}Expand description
Multi-agent visibility scope for a query.
The default scope for an external MCP client is Own; an embedded agent
typically gets OwnPlusShared; privileged user surfaces (a Memory tab UI,
an audit timeline) get Global.
Variants§
Own
Caller sees only chunks where caller_id == self.
Caller sees own chunks plus any chunk tagged shareable.
Global
Caller sees everything. Privileged — granted to user surfaces only.
Trait Implementations§
Source§impl Clone for CallerScope
impl Clone for CallerScope
Source§fn clone(&self) -> CallerScope
fn clone(&self) -> CallerScope
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 CallerScope
Source§impl Debug for CallerScope
impl Debug for CallerScope
Source§impl Default for CallerScope
impl Default for CallerScope
Source§fn default() -> CallerScope
fn default() -> CallerScope
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CallerScope
impl<'de> Deserialize<'de> for CallerScope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CallerScope
Source§impl Hash for CallerScope
impl Hash for CallerScope
Source§impl PartialEq for CallerScope
impl PartialEq for CallerScope
Source§fn eq(&self, other: &CallerScope) -> bool
fn eq(&self, other: &CallerScope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CallerScope
impl Serialize for CallerScope
impl StructuralPartialEq for CallerScope
Auto Trait Implementations§
impl Freeze for CallerScope
impl RefUnwindSafe for CallerScope
impl Send for CallerScope
impl Sync for CallerScope
impl Unpin for CallerScope
impl UnsafeUnpin for CallerScope
impl UnwindSafe for CallerScope
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