pub struct HookInput {
pub event: String,
pub tool_name: Option<String>,
pub tool_input: Option<Value>,
pub tool_output: Option<Value>,
pub tool_use_id: Option<String>,
pub session_id: Option<String>,
pub cwd: Option<String>,
pub error: Option<String>,
}Expand description
Hook input passed to handlers.
Fields§
§event: String§tool_name: Option<String>§tool_input: Option<Value>§tool_output: Option<Value>§tool_use_id: Option<String>§session_id: Option<String>§cwd: Option<String>§error: Option<String>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HookInput
impl<'de> Deserialize<'de> for HookInput
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 HookInput
impl RefUnwindSafe for HookInput
impl Send for HookInput
impl Sync for HookInput
impl Unpin for HookInput
impl UnsafeUnpin for HookInput
impl UnwindSafe for HookInput
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