pub struct HookEntry {
pub name: String,
pub event: String,
pub native_event: String,
pub script_path: String,
pub order: i32,
}Expand description
A hook binding entry ready to be written into a target config file.
Fields§
§name: StringHook name (for identification — two hooks with the same name from different packages are both executed; hooks are additive).
event: StringUniversal event name (e.g. “tool.pre”).
native_event: StringNative event name for this target (e.g. “PreToolUse” for Claude).
script_path: StringScript path to execute, relative to the target directory.
order: i32Explicit ordering hint (lower = earlier).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HookEntry
impl RefUnwindSafe for HookEntry
impl Send for HookEntry
impl Sync for HookEntry
impl Unpin for HookEntry
impl UnsafeUnpin for HookEntry
impl UnwindSafe for HookEntry
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more