pub struct GitCommit { /* private fields */ }Expand description
Wrapper for Git commits
Implementations§
Source§impl GitCommit
impl GitCommit
Sourcepub fn short_hash(&self) -> &str
pub fn short_hash(&self) -> &str
Get the short hash
Get the author
Sourcepub const fn is_breaking(&self) -> bool
pub const fn is_breaking(&self) -> bool
Check if this is a breaking change
Sourcepub const fn commit_type(&self) -> Option<CommitType>
pub const fn commit_type(&self) -> Option<CommitType>
Get the commit type
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GitCommit
impl RefUnwindSafe for GitCommit
impl Send for GitCommit
impl Sync for GitCommit
impl Unpin for GitCommit
impl UnsafeUnpin for GitCommit
impl UnwindSafe for GitCommit
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