pub enum HookEventName {
Show 28 variants
SessionStart,
SessionEnd,
UserPromptSubmit,
PreToolUse,
PostToolUse,
PostToolUseFailure,
Notification,
Stop,
SubagentStart,
SubagentStop,
PreCompact,
PostCompact,
PermissionRequest,
PermissionDenied,
Elicitation,
ElicitationResult,
WorktreeCreate,
WorktreeRemove,
FileChanged,
CwdChanged,
InstructionsLoaded,
ConfigChange,
Setup,
TeammateIdle,
TaskCreated,
TaskCompleted,
StopFailure,
PostSampling,
}Variants§
SessionStart
SessionEnd
UserPromptSubmit
PreToolUse
PostToolUse
PostToolUseFailure
Notification
Stop
SubagentStart
SubagentStop
PreCompact
PostCompact
PermissionRequest
PermissionDenied
Elicitation
ElicitationResult
WorktreeCreate
WorktreeRemove
FileChanged
CwdChanged
InstructionsLoaded
ConfigChange
Setup
TeammateIdle
TaskCreated
TaskCompleted
StopFailure
PostSampling
Implementations§
Source§impl HookEventName
impl HookEventName
pub fn canonical_name(self) -> &'static str
pub fn matcher_field(self) -> Option<&'static str>
Sourcepub fn from_alias(alias: &str) -> Option<Self>
pub fn from_alias(alias: &str) -> Option<Self>
Resolve an alias (PascalCase, snake_case, or camelCase) to its canonical
variant. strum::EnumString with ascii_case_insensitive handles case
variants; we strip underscores so pre_tool_use normalizes to
PreToolUse without per-variant serde aliases.
Trait Implementations§
Source§impl Clone for HookEventName
impl Clone for HookEventName
Source§fn clone(&self) -> HookEventName
fn clone(&self) -> HookEventName
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 HookEventName
impl Debug for HookEventName
Source§impl<'_derivative_strum> From<&'_derivative_strum HookEventName> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum HookEventName> for &'static str
Source§fn from(x: &'_derivative_strum HookEventName) -> &'static str
fn from(x: &'_derivative_strum HookEventName) -> &'static str
Converts to this type from the input type.
Source§impl From<HookEventName> for &'static str
impl From<HookEventName> for &'static str
Source§fn from(x: HookEventName) -> &'static str
fn from(x: HookEventName) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for HookEventName
impl FromStr for HookEventName
Source§impl Hash for HookEventName
impl Hash for HookEventName
Source§impl Ord for HookEventName
impl Ord for HookEventName
Source§fn cmp(&self, other: &HookEventName) -> Ordering
fn cmp(&self, other: &HookEventName) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HookEventName
impl PartialEq for HookEventName
Source§fn eq(&self, other: &HookEventName) -> bool
fn eq(&self, other: &HookEventName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for HookEventName
impl PartialOrd for HookEventName
Source§impl TryFrom<&str> for HookEventName
impl TryFrom<&str> for HookEventName
impl Copy for HookEventName
impl Eq for HookEventName
impl StructuralPartialEq for HookEventName
Auto Trait Implementations§
impl Freeze for HookEventName
impl RefUnwindSafe for HookEventName
impl Send for HookEventName
impl Sync for HookEventName
impl Unpin for HookEventName
impl UnsafeUnpin for HookEventName
impl UnwindSafe for HookEventName
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.