pub struct ParsedHookInput {
pub session_id: Option<String>,
pub tool_use_id: Option<String>,
pub tool_name: Option<String>,
pub subagent_type: Option<String>,
pub spawned_agent_id: Option<String>,
pub permission_mode: Option<String>,
pub transcript_path: Option<String>,
pub cwd: Option<String>,
pub session_source: Option<String>,
pub agent_id: Option<String>,
pub agent_transcript_path: Option<String>,
pub compact_trigger: Option<String>,
}Expand description
Parsed hook input with normalized fields.
This struct contains fields extracted from framework-specific hook JSON, normalized to a common format for storage.
Fields§
§session_id: Option<String>Session identifier
tool_use_id: Option<String>Tool use correlation ID
tool_name: Option<String>Tool name (Bash, Read, Write, etc.)
subagent_type: Option<String>Subagent type for Task tool
spawned_agent_id: Option<String>Spawned agent ID from PostToolUse
permission_mode: Option<String>Permission mode
transcript_path: Option<String>Transcript file path
cwd: Option<String>Working directory
session_source: Option<String>SessionStart source (startup, resume, clear)
agent_id: Option<String>Agent ID from SubagentStop/SubagentStart
agent_transcript_path: Option<String>Path to agent’s transcript file (from SubagentStop)
compact_trigger: Option<String>PreCompact trigger type (manual, auto)
Trait Implementations§
Source§impl Clone for ParsedHookInput
impl Clone for ParsedHookInput
Source§fn clone(&self) -> ParsedHookInput
fn clone(&self) -> ParsedHookInput
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 ParsedHookInput
impl Debug for ParsedHookInput
Source§impl Default for ParsedHookInput
impl Default for ParsedHookInput
Source§fn default() -> ParsedHookInput
fn default() -> ParsedHookInput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParsedHookInput
impl RefUnwindSafe for ParsedHookInput
impl Send for ParsedHookInput
impl Sync for ParsedHookInput
impl Unpin for ParsedHookInput
impl UnwindSafe for ParsedHookInput
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