pub struct PermissionRequestData {
pub kind: Option<PermissionRequestKind>,
pub tool_call_id: Option<String>,
pub managed_approval_required: Option<bool>,
pub managed_settings_enabled: bool,
pub extra: Value,
}Expand description
Data sent by the CLI for permission-related events.
Used for both the permission.request RPC call (which expects a response)
and permission.requested notifications (fire-and-forget). Contains the
full params object.
Fields§
§kind: Option<PermissionRequestKind>The permission category being requested. None means the CLI did
not include a kind field. Use this to branch on common cases
(shell, write, etc.) without parsing extra.
tool_call_id: Option<String>The originating tool-call ID, if this permission request is tied to a specific tool invocation.
managed_approval_required: Option<bool>Whether managed policy requires an explicit human decision.
managed_settings_enabled: boolWhether managed settings are enabled for this session.
extra: ValueThe full permission event params from the CLI, including the request ID
and nested permission request. The shape varies by permission type and
CLI version, so we preserve it as Value.
Trait Implementations§
Source§impl Clone for PermissionRequestData
impl Clone for PermissionRequestData
Source§fn clone(&self) -> PermissionRequestData
fn clone(&self) -> PermissionRequestData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more