pub struct CommitHistory {
pub commits: Vec<Commit>,
pub since: Option<String>,
pub until: Option<String>,
}Expand description
A collection of commits
Fields§
§commits: Vec<Commit>All commits in the history
since: Option<String>The starting tag/ref
until: Option<String>The ending ref
Implementations§
Source§impl CommitHistory
impl CommitHistory
Sourcepub fn by_type(&self, commit_type: CommitType) -> Vec<&Commit>
pub fn by_type(&self, commit_type: CommitType) -> Vec<&Commit>
Get commits by type
Sourcepub fn breaking_changes(&self) -> Vec<&Commit>
pub fn breaking_changes(&self) -> Vec<&Commit>
Get breaking changes
Sourcepub fn changeloggable(&self) -> Vec<&Commit>
pub fn changeloggable(&self) -> Vec<&Commit>
Get changeloggable commits
Sourcepub fn count_by_type(&self) -> HashMap<CommitType, usize>
pub fn count_by_type(&self) -> HashMap<CommitType, usize>
Count commits by type
Trait Implementations§
Source§impl Clone for CommitHistory
impl Clone for CommitHistory
Source§fn clone(&self) -> CommitHistory
fn clone(&self) -> CommitHistory
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 CommitHistory
impl Debug for CommitHistory
Source§impl<'de> Deserialize<'de> for CommitHistory
impl<'de> Deserialize<'de> for CommitHistory
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommitHistory
impl RefUnwindSafe for CommitHistory
impl Send for CommitHistory
impl Sync for CommitHistory
impl Unpin for CommitHistory
impl UnsafeUnpin for CommitHistory
impl UnwindSafe for CommitHistory
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