pub struct HookEvent {
pub hook_event_name: String,
pub tool_name: Option<String>,
pub tool_input: Value,
pub cwd: Option<String>,
pub workspace: String,
pub harness: Option<String>,
}Expand description
A harness hook event, reduced to what Lonca uses. hook.input makes one
from what a harness sent; tool names stay the harness’s own.
Fields§
§hook_event_name: String§tool_name: Option<String>§tool_input: Value§cwd: Option<String>§workspace: StringAbsolute path of the workspace root the hook resolved.
harness: Option<String>The harness profile to read it with; none means claude-code.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HookEvent
impl<'de> Deserialize<'de> for HookEvent
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 Forget for HookEvent
impl Freeze for HookEvent
impl RefUnwindSafe for HookEvent
impl Send for HookEvent
impl Sync for HookEvent
impl Unpin for HookEvent
impl UnsafeUnpin for HookEvent
impl UnwindSafe for HookEvent
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