pub struct ApprovalView {
pub kind: String,
pub title: String,
pub subject: String,
pub body_lines: Vec<String>,
pub sandbox: String,
pub claim: Option<String>,
pub risk: String,
pub scope: String,
pub object: Vec<String>,
pub sources: Vec<String>,
pub options: Vec<String>,
}Expand description
A pending call as a person sees it: what, why, what it can reach, what the model claimed, and what approving it grants.
Fields§
§kind: Stringwrite, edit, run, network or mcp.
title: StringEdit this file?, Run this command?, ….
subject: StringThe path, the whole command, or the MCP tool.
body_lines: Vec<String>The diff, the file’s head, the command or the arguments.
sandbox: StringWhat the call can reach.
claim: Option<String>What the model said when it asked (a claim).
risk: Stringlow, medium or high.
scope: StringWhat approve grants: for the rest of T004: this file, any content.
object: Vec<String>The object’s lines.
sources: Vec<String>Where arguments were copied from.
options: Vec<String>The choices offered, in order.
Trait Implementations§
Source§impl Clone for ApprovalView
impl Clone for ApprovalView
Source§impl Debug for ApprovalView
impl Debug for ApprovalView
impl Eq for ApprovalView
Source§impl JsonSchema for ApprovalView
impl JsonSchema for ApprovalView
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ApprovalView
impl PartialEq for ApprovalView
Source§impl Serialize for ApprovalView
impl Serialize for ApprovalView
impl StructuralPartialEq for ApprovalView
Auto Trait Implementations§
impl Freeze for ApprovalView
impl RefUnwindSafe for ApprovalView
impl Send for ApprovalView
impl Sync for ApprovalView
impl Unpin for ApprovalView
impl UnsafeUnpin for ApprovalView
impl UnwindSafe for ApprovalView
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