pub struct HookDefinition {
pub command: Option<String>,
pub timeout: Option<u64>,
pub matcher: Option<String>,
}Expand description
Legacy hook definition – kept for backwards compatibility with code that constructs HookDefinition directly.
Fields§
§command: Option<String>Shell command to execute
timeout: Option<u64>Timeout in milliseconds
matcher: Option<String>Tool name matcher (regex pattern)
Trait Implementations§
Source§impl Clone for HookDefinition
impl Clone for HookDefinition
Source§fn clone(&self) -> HookDefinition
fn clone(&self) -> HookDefinition
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 HookDefinition
impl Debug for HookDefinition
Source§impl<'de> Deserialize<'de> for HookDefinition
impl<'de> Deserialize<'de> for HookDefinition
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
Source§impl From<HookCommand> for HookDefinition
impl From<HookCommand> for HookDefinition
Source§fn from(cmd: HookCommand) -> Self
fn from(cmd: HookCommand) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HookDefinition
impl RefUnwindSafe for HookDefinition
impl Send for HookDefinition
impl Sync for HookDefinition
impl Unpin for HookDefinition
impl UnsafeUnpin for HookDefinition
impl UnwindSafe for HookDefinition
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