pub enum Prefix {
Default,
FailFast,
Advisory,
Fix,
}Expand description
The execution mode for a hook command.
Controls what happens when the command exits with a non-zero status.
Variants§
Default
No explicit prefix — uses the hook’s default execution mode.
FailFast
! prefix — abort the hook immediately on failure.
Advisory
? prefix — report as a warning, never cause the hook to fail.
Fix
~ prefix — auto-format staged files and re-stage (pre-commit only).
In other hooks, treated as ! with a warning.
Trait Implementations§
impl Copy for Prefix
impl Eq for Prefix
impl StructuralPartialEq for Prefix
Auto Trait Implementations§
impl Freeze for Prefix
impl RefUnwindSafe for Prefix
impl Send for Prefix
impl Sync for Prefix
impl Unpin for Prefix
impl UnsafeUnpin for Prefix
impl UnwindSafe for Prefix
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