pub struct PermissionCompletedData {
pub decision_source: Option<PermissionDecisionSource>,
pub request_id: RequestId,
pub result: PermissionResult,
pub tool_call_id: Option<String>,
}Expand description
Session event “permission.completed”. Permission request completion notification signaling UI dismissal
Fields§
§decision_source: Option<PermissionDecisionSource>Who decided this permission request. Absent on completions recorded before this field existed, which consumers must treat as “not a human decision” rather than assuming one. Authorization records are minted only for human_response; an assisted-approval verdict, a host policy, an unattended fallback, and a hook resolution all produce the same result a person does, so this is the only field that distinguishes them.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
request_id: RequestIdRequest ID of the resolved permission request; clients should dismiss any UI for this request
result: PermissionResultThe result of the permission request
tool_call_id: Option<String>Optional tool call ID associated with this permission prompt; clients may use it to correlate UI created from tool-scoped prompts
Trait Implementations§
Source§impl Clone for PermissionCompletedData
impl Clone for PermissionCompletedData
Source§fn clone(&self) -> PermissionCompletedData
fn clone(&self) -> PermissionCompletedData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more