Returns the canonical string representation of this hook type.
(&self)
| 233 | |
| 234 | /// Returns the canonical string representation of this hook type. |
| 235 | pub fn as_str(&self) -> &'static str { |
| 236 | match self { |
| 237 | HookType::SessionStart => "session_start", |
| 238 | HookType::SessionEnd => "session_end", |
| 239 | HookType::TurnStart => "turn_start", |
| 240 | HookType::TurnEnd => "turn_end", |
| 241 | HookType::PreToolUse => "pre_tool_use", |
| 242 | HookType::PostToolUse => "post_tool_use", |
| 243 | } |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | impl fmt::Display for HookType { |
no outgoing calls