pub struct PermissionRequestInput {
pub base: BaseHookInput,
pub subagent: SubagentContext,
pub tool_name: String,
pub tool_input: Value,
pub permission_suggestions: Option<Vec<Value>>,
}Expand description
Input payload for PermissionRequest.
Observed when the CLI asks the SDK to confirm a tool invocation. This is
distinct from the can_use_tool control_request path - PermissionRequest
hooks are observational; actual allow/deny decisions still flow through
can_use_tool.
Fields§
§base: BaseHookInputShared hook context.
subagent: SubagentContextOptional sub-agent attribution.
tool_name: StringTool the CLI is asking about.
tool_input: ValueProposed tool input.
permission_suggestions: Option<Vec<Value>>Optional list of permission-rule suggestions the CLI proposes.
Trait Implementations§
Source§impl Clone for PermissionRequestInput
impl Clone for PermissionRequestInput
Source§fn clone(&self) -> PermissionRequestInput
fn clone(&self) -> PermissionRequestInput
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 PermissionRequestInput
impl Debug for PermissionRequestInput
Source§impl<'de> Deserialize<'de> for PermissionRequestInput
impl<'de> Deserialize<'de> for PermissionRequestInput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PermissionRequestInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PermissionRequestInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PermissionRequestInput
impl Serialize for PermissionRequestInput
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for PermissionRequestInput
impl RefUnwindSafe for PermissionRequestInput
impl Send for PermissionRequestInput
impl Sync for PermissionRequestInput
impl Unpin for PermissionRequestInput
impl UnsafeUnpin for PermissionRequestInput
impl UnwindSafe for PermissionRequestInput
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