pub struct ChangeStats {
pub total_change_sets: usize,
pub change_sets_by_type: HashMap<ChangeType, usize>,
pub change_sets_by_package: HashMap<String, usize>,
pub breaking_changes: usize,
pub features: usize,
pub bug_fixes: usize,
pub other_changes: usize,
pub avg_changes_per_package: f64,
pub most_common_change_type: Option<ChangeType>,
pub most_affected_package: Option<String>,
}Expand description
Change statistics.
Fields§
§total_change_sets: usizeTotal number of change sets.
change_sets_by_type: HashMap<ChangeType, usize>Change sets grouped by type.
change_sets_by_package: HashMap<String, usize>Change sets grouped by package.
breaking_changes: usizeTotal number of breaking changes.
features: usizeTotal number of features.
bug_fixes: usizeTotal number of bug fixes.
other_changes: usizeTotal number of other changes.
avg_changes_per_package: f64Average changes per package.
most_common_change_type: Option<ChangeType>Most common change type.
most_affected_package: Option<String>Most affected package.
Implementations§
Source§impl ChangeStats
impl ChangeStats
Sourcepub fn from_change_sets(change_sets: &[ChangeSet]) -> Self
pub fn from_change_sets(change_sets: &[ChangeSet]) -> Self
Creates a new ChangeStats instance from a list of change sets.
Sourcepub fn generate_summary(&self) -> String
pub fn generate_summary(&self) -> String
Generates a summary of the change statistics.
Trait Implementations§
Source§impl Clone for ChangeStats
impl Clone for ChangeStats
Source§fn clone(&self) -> ChangeStats
fn clone(&self) -> ChangeStats
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 ChangeStats
impl Debug for ChangeStats
Source§impl<'de> Deserialize<'de> for ChangeStats
impl<'de> Deserialize<'de> for ChangeStats
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 ChangeStats
impl RefUnwindSafe for ChangeStats
impl Send for ChangeStats
impl Sync for ChangeStats
impl Unpin for ChangeStats
impl UnsafeUnpin for ChangeStats
impl UnwindSafe for ChangeStats
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