pub struct ShellHookDef {
pub name: String,
pub event: String,
pub pattern: Option<String>,
pub command: String,
pub feedback: bool,
}Expand description
A single hook definition from the JSON config.
Fields§
§name: StringHuman-readable name.
event: StringWhen the hook fires: “beforeRead”, “afterWrite”, “beforeTerminal”, etc.
pattern: Option<String>Optional glob pattern to filter by file path (e.g. “**/*.cs”).
command: StringShell command to execute. Supports ${file} placeholder.
feedback: boolIf true, command output is sent back to the agent as a follow-up prompt.
Trait Implementations§
Source§impl Debug for ShellHookDef
impl Debug for ShellHookDef
Source§impl<'de> Deserialize<'de> for ShellHookDef
impl<'de> Deserialize<'de> for ShellHookDef
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 Freeze for ShellHookDef
impl RefUnwindSafe for ShellHookDef
impl Send for ShellHookDef
impl Sync for ShellHookDef
impl Unpin for ShellHookDef
impl UnsafeUnpin for ShellHookDef
impl UnwindSafe for ShellHookDef
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