pub struct HookHandler {
pub type: String,
pub command: String,
pub timeout: Option<u32>,
pub async: Option<bool>,
pub status_message: Option<String>,
}Expand description
Hook handler configuration (matches Claude’s settings.json structure)
This is the innermost handler object inside a matcher group’s hooks array.
Fields§
§type: StringHandler type: “command”, “prompt”, or “agent”
command: StringFull command string with arguments (for type=“command”)
timeout: Option<u32>Optional timeout in seconds (default 600)
async: Option<bool>Optional async flag (only for PostToolUse/PostToolUseFailure)
status_message: Option<String>Optional custom spinner message
Trait Implementations§
Source§impl Clone for HookHandler
impl Clone for HookHandler
Source§fn clone(&self) -> HookHandler
fn clone(&self) -> HookHandler
Returns a duplicate of the value. Read more
1.0.0 · 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 HookHandler
impl Debug for HookHandler
Source§impl<'de> Deserialize<'de> for HookHandler
impl<'de> Deserialize<'de> for HookHandler
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
Source§impl PartialEq for HookHandler
impl PartialEq for HookHandler
Source§impl Serialize for HookHandler
impl Serialize for HookHandler
impl Eq for HookHandler
impl StructuralPartialEq for HookHandler
Auto Trait Implementations§
impl Freeze for HookHandler
impl RefUnwindSafe for HookHandler
impl Send for HookHandler
impl Sync for HookHandler
impl Unpin for HookHandler
impl UnwindSafe for HookHandler
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