pub struct ExecApprovalRequestEvent {
pub call_id: String,
pub approval_id: String,
pub turn_id: String,
pub command: String,
pub cwd: String,
pub reason: String,
pub matched_rule: Option<Box<str>>,
pub network_approval_context: Option<NetworkApprovalContext>,
pub proposed_execpolicy_amendment: Vec<String>,
pub proposed_network_policy_amendments: Vec<NetworkPolicyAmendment>,
pub additional_permissions: Vec<String>,
pub available_decisions: Vec<ReviewDecision>,
}Expand description
An event requesting user approval for a command execution or patch application.
Fields§
§call_id: StringIdentifier of the tool call requesting approval.
approval_id: StringUnique identifier for this approval request.
turn_id: StringThe turn during which the request was made.
command: StringThe command that would be executed.
cwd: StringThe working directory for the command.
reason: StringHuman-readable reason why approval is needed.
matched_rule: Option<Box<str>>Policy rule that matched this approval request, when available.
network_approval_context: Option<NetworkApprovalContext>Network context if the approval involves network access.
proposed_execpolicy_amendment: Vec<String>Proposed execution policy rule amendments.
proposed_network_policy_amendments: Vec<NetworkPolicyAmendment>Proposed network policy amendments.
additional_permissions: Vec<String>Additional permissions being requested.
available_decisions: Vec<ReviewDecision>The set of decisions the user can choose from.
Trait Implementations§
Source§impl Clone for ExecApprovalRequestEvent
impl Clone for ExecApprovalRequestEvent
Source§fn clone(&self) -> ExecApprovalRequestEvent
fn clone(&self) -> ExecApprovalRequestEvent
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 ExecApprovalRequestEvent
impl Debug for ExecApprovalRequestEvent
Source§impl<'de> Deserialize<'de> for ExecApprovalRequestEvent
impl<'de> Deserialize<'de> for ExecApprovalRequestEvent
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
Auto Trait Implementations§
impl Freeze for ExecApprovalRequestEvent
impl RefUnwindSafe for ExecApprovalRequestEvent
impl Send for ExecApprovalRequestEvent
impl Sync for ExecApprovalRequestEvent
impl Unpin for ExecApprovalRequestEvent
impl UnsafeUnpin for ExecApprovalRequestEvent
impl UnwindSafe for ExecApprovalRequestEvent
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