pub struct GitHook { /* private fields */ }Trait Implementations§
Source§impl<P> Hook<P> for GitHookwhere
P: PhaseMarker,
impl<P> Hook<P> for GitHookwhere
P: PhaseMarker,
Source§const ID: &'static str = "capture-git-repo"
const ID: &'static str = "capture-git-repo"
The unique identifier for this hook type (e.g., “capture-cwd”, “notify-slack”)
type Config = GitHookConfig
type Output = GitCaptured
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 GitHook
impl RefUnwindSafe for GitHook
impl Send for GitHook
impl Sync for GitHook
impl Unpin for GitHook
impl UnwindSafe for GitHook
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