pub struct HooksConfig {
pub session_start: bool,
pub session_end: bool,
pub user_prompt_submit: bool,
pub stop: bool,
pub subagent_start: bool,
pub subagent_stop: bool,
pub notification: bool,
pub permission_request: bool,
pub pre_compact: bool,
pub pre_tool_use: bool,
pub post_tool_use: bool,
}Fields§
§session_start: bool§session_end: bool§user_prompt_submit: bool§stop: bool§subagent_start: bool§subagent_stop: bool§notification: bool§permission_request: bool§pre_compact: bool§pre_tool_use: bool§post_tool_use: boolImplementations§
Source§impl HooksConfig
impl HooksConfig
Sourcepub fn enabled_hooks(&self) -> Vec<EventType>
pub fn enabled_hooks(&self) -> Vec<EventType>
Returns enabled hooks as EventType values for type-safe handling.
Trait Implementations§
Source§impl Clone for HooksConfig
impl Clone for HooksConfig
Source§fn clone(&self) -> HooksConfig
fn clone(&self) -> HooksConfig
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 HooksConfig
impl Debug for HooksConfig
Source§impl Default for HooksConfig
impl Default for HooksConfig
Source§impl<'de> Deserialize<'de> for HooksConfig
impl<'de> Deserialize<'de> for HooksConfig
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 HooksConfig
impl RefUnwindSafe for HooksConfig
impl Send for HooksConfig
impl Sync for HooksConfig
impl Unpin for HooksConfig
impl UnwindSafe for HooksConfig
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