pub enum HookKind {
Commit,
Push,
}Expand description
Which git-hook this block targets. Drives the --trigger arg passed
through to klasp gate, and the on-disk filename
(.git/hooks/pre-commit vs .git/hooks/pre-push).
Variants§
Implementations§
Source§impl HookKind
impl HookKind
Sourcepub const fn trigger_arg(self) -> &'static str
pub const fn trigger_arg(self) -> &'static str
Value passed to klasp gate --trigger .... Matches the trigger
vocabulary documented in klasp_core::trigger.
Trait Implementations§
impl Copy for HookKind
impl Eq for HookKind
impl StructuralPartialEq for HookKind
Auto Trait Implementations§
impl Freeze for HookKind
impl RefUnwindSafe for HookKind
impl Send for HookKind
impl Sync for HookKind
impl Unpin for HookKind
impl UnsafeUnpin for HookKind
impl UnwindSafe for HookKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.