Struct git_checks::CommitSubject
source · [−]pub struct CommitSubject { /* private fields */ }
Expand description
Check commit message subjects for invalid patterns.
Patterns which are checked for:
- overly long or short summary lines;
- work-in-progress messages;
fixup!
andsquash!
messages; and- custom prefixes.
Commit messages which appear to have been auto generated by actions such as merging or reverting commits will skip the summary line length limit (if enforced).
Implementations
sourceimpl CommitSubject
impl CommitSubject
sourcepub fn builder() -> CommitSubjectBuilder
pub fn builder() -> CommitSubjectBuilder
Create a new builder.
Trait Implementations
sourceimpl Check for CommitSubject
impl Check for CommitSubject
sourceimpl Clone for CommitSubject
impl Clone for CommitSubject
sourcefn clone(&self) -> CommitSubject
fn clone(&self) -> CommitSubject
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CommitSubject
impl Debug for CommitSubject
Auto Trait Implementations
impl RefUnwindSafe for CommitSubject
impl Send for CommitSubject
impl Sync for CommitSubject
impl Unpin for CommitSubject
impl UnwindSafe for CommitSubject
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more