pub struct CommandHook { /* private fields */ }Trait Implementations§
Source§impl Debug for CommandHook
impl Debug for CommandHook
Source§impl<P> Hook<P> for CommandHookwhere
P: PhaseMarker,
impl<P> Hook<P> for CommandHookwhere
P: PhaseMarker,
Source§const ID: &'static str = "capture-command"
const ID: &'static str = "capture-command"
The unique identifier for this hook type (e.g., “capture-cwd”, “notify-slack”)
type Config = CommandHookConfig
type Output = CommandCaptured
Source§fn from_config(config: &Value, _project_root: &Path) -> CapsulaResult<Self>
fn from_config(config: &Value, _project_root: &Path) -> CapsulaResult<Self>
Create a hook instance from JSON configuration
fn config(&self) -> &Self::Config
fn run( &self, _metadata: &PreparedRun, _params: &RuntimeParams<P>, ) -> CapsulaResult<Self::Output>
Auto Trait Implementations§
impl Freeze for CommandHook
impl RefUnwindSafe for CommandHook
impl Send for CommandHook
impl Sync for CommandHook
impl Unpin for CommandHook
impl UnwindSafe for CommandHook
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