pub struct FileHook { /* private fields */ }Trait Implementations§
Source§impl<P> Hook<P> for FileHookwhere
P: PhaseMarker,
impl<P> Hook<P> for FileHookwhere
P: PhaseMarker,
Source§const ID: &'static str = "capture-file"
const ID: &'static str = "capture-file"
The unique identifier for this hook type (e.g., “capture-cwd”, “notify-slack”)
type Config = FileHookConfig
type Output = FileCaptured
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>
Source§fn needs_artifact_dir(&self) -> bool
fn needs_artifact_dir(&self) -> bool
Whether this hook needs a dedicated artifact directory. Read more
Auto Trait Implementations§
impl Freeze for FileHook
impl RefUnwindSafe for FileHook
impl Send for FileHook
impl Sync for FileHook
impl Unpin for FileHook
impl UnsafeUnpin for FileHook
impl UnwindSafe for FileHook
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