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§fn clone(&self) -> HooksModel
fn clone(&self) -> HooksModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HooksModel
impl Debug for HooksModel
Source§impl Default for HooksModel
impl Default for HooksModel
Source§fn default() -> HooksModel
fn default() -> HooksModel
Returns the “default value” for a type. Read more
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