pub struct ChangeLog {
pub scopes: Vec<Scope>,
pub commits: Vec<Commit>,
pub remote_url: Option<String>,
pub range: String,
pub date: String,
}
Expand description
A categorized changelog
Fields§
§scopes: Vec<Scope>
A list of scoped changes in the commit range.
commits: Vec<Commit>
A list of “interesting” commits in the range.
remote_url: Option<String>
The fetch url of the remote (useful for change number links)
range: String
The revision range for commits in this changelog
date: String
The time range for the commits in this changelog
Implementations§
Source§impl ChangeLog
impl ChangeLog
Sourcepub fn from_range(range: &str, config: &Configuration) -> Self
pub fn from_range(range: &str, config: &Configuration) -> Self
Generate a changelog for the given range
Sourcepub fn from_log(args: Vec<String>, config: &Configuration) -> Self
pub fn from_log(args: Vec<String>, config: &Configuration) -> Self
Create a changelog from the given git log
arguments
Sourcepub fn from<T: Iterator<Item = Commit>>(
commits: T,
config: &Configuration,
) -> Self
pub fn from<T: Iterator<Item = Commit>>( commits: T, config: &Configuration, ) -> Self
Create a changelog from the given commits using the given conventions
Trait Implementations§
impl Eq for ChangeLog
impl StructuralPartialEq for ChangeLog
Auto Trait Implementations§
impl Freeze for ChangeLog
impl RefUnwindSafe for ChangeLog
impl Send for ChangeLog
impl Sync for ChangeLog
impl Unpin for ChangeLog
impl UnwindSafe for ChangeLog
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