pub struct ParsedSubject<'a> {
pub commit_type: &'a str,
pub scope: Option<&'a str>,
pub description: &'a str,
pub breaking: bool,
}Expand description
A parsed conventional-commit subject line.
Fields§
§commit_type: &'a strThe type token, e.g. feat.
scope: Option<&'a str>The raw (scope) contents, un-split on commas, when present and
non-empty.
description: &'a strEverything after the : separator.
breaking: boolWhether a breaking-change ! marker was present, either side of the
scope parens.
Trait Implementations§
Source§impl<'a> Clone for ParsedSubject<'a>
impl<'a> Clone for ParsedSubject<'a>
Source§fn clone(&self) -> ParsedSubject<'a>
fn clone(&self) -> ParsedSubject<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ParsedSubject<'a>
impl<'a> Debug for ParsedSubject<'a>
impl<'a> Eq for ParsedSubject<'a>
Source§impl<'a> PartialEq for ParsedSubject<'a>
impl<'a> PartialEq for ParsedSubject<'a>
impl<'a> StructuralPartialEq for ParsedSubject<'a>
Auto Trait Implementations§
impl<'a> Freeze for ParsedSubject<'a>
impl<'a> RefUnwindSafe for ParsedSubject<'a>
impl<'a> Send for ParsedSubject<'a>
impl<'a> Sync for ParsedSubject<'a>
impl<'a> Unpin for ParsedSubject<'a>
impl<'a> UnsafeUnpin for ParsedSubject<'a>
impl<'a> UnwindSafe for ParsedSubject<'a>
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.