pub struct HooksModel {
pub pre_commit: bool,
pub commit_msg: bool,
pub pre_push: bool,
}Fields§
§pre_commit: bool§commit_msg: bool§pre_push: boolImplementations§
Source§impl HooksModel
impl HooksModel
pub fn from_config(config: &ResolvedConfig) -> Self
Trait Implementations§
Source§impl Clone for HooksModel
impl Clone for HooksModel
Source§impl Debug for HooksModel
impl Debug for HooksModel
Auto Trait Implementations§
impl Freeze for HooksModel
impl RefUnwindSafe for HooksModel
impl Send for HooksModel
impl Sync for HooksModel
impl Unpin for HooksModel
impl UnsafeUnpin for HooksModel
impl UnwindSafe for HooksModel
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