pub struct GuardCallContext {
pub tool_name: String,
pub agent_id: String,
pub server_id: String,
pub arguments_json: String,
}Expand description
Subset of guard-request information passed to an ExternalGuard.
This is intentionally a thin, owned structure: external guards typically
need to cache or hash a small description of the request rather than the
full kernel GuardContext. Concrete adapters can extend this by wrapping
the adapter in a kernel-level chio_kernel::Guard that synthesizes a
richer GuardCallContext from the actual GuardContext.
Fields§
§tool_name: StringTool name being invoked.
agent_id: StringCalling agent identifier.
server_id: StringTarget server identifier.
arguments_json: StringTool arguments serialized as JSON. Kept as a String so the cache
key can hash it cheaply without committing to a fixed schema.
Trait Implementations§
Source§impl Clone for GuardCallContext
impl Clone for GuardCallContext
Source§fn clone(&self) -> GuardCallContext
fn clone(&self) -> GuardCallContext
Returns a duplicate of the value. Read more
1.0.0 · 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 GuardCallContext
impl Debug for GuardCallContext
Source§impl Default for GuardCallContext
impl Default for GuardCallContext
Source§fn default() -> GuardCallContext
fn default() -> GuardCallContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GuardCallContext
impl RefUnwindSafe for GuardCallContext
impl Send for GuardCallContext
impl Sync for GuardCallContext
impl Unpin for GuardCallContext
impl UnsafeUnpin for GuardCallContext
impl UnwindSafe for GuardCallContext
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