pub struct ApprovalRequest<'a> {
pub tool: &'a str,
pub subject: Option<&'a str>,
pub raw_args: &'a Value,
}Expand description
One Ask-tier request handed to a PermissionsApprovalHandler — enough
context for an interactive prompt (or a scripted policy) to render a
decision without needing back-references into Agent’s private state.
Fields§
§tool: &'a strThe tool being called ("bash", "write_file", …).
subject: Option<&'a str>The canonicalized command text (bash-family tools) or resolved path
(file tools), if this call has one — None for a tool with no
richer subject (e.g. update_plan).
raw_args: &'a ValueThe raw, model-supplied arguments (for a handler that wants to show the user the exact call, not just the canonical summary).
Trait Implementations§
Source§impl<'a> Clone for ApprovalRequest<'a>
impl<'a> Clone for ApprovalRequest<'a>
Source§fn clone(&self) -> ApprovalRequest<'a>
fn clone(&self) -> ApprovalRequest<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for ApprovalRequest<'a>
impl<'a> RefUnwindSafe for ApprovalRequest<'a>
impl<'a> Send for ApprovalRequest<'a>
impl<'a> Sync for ApprovalRequest<'a>
impl<'a> Unpin for ApprovalRequest<'a>
impl<'a> UnsafeUnpin for ApprovalRequest<'a>
impl<'a> UnwindSafe for ApprovalRequest<'a>
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