pub struct BumpSummary {
pub total_packages: usize,
pub packages_to_bump: usize,
pub packages_unchanged: usize,
pub total_changesets: usize,
pub has_circular_dependencies: bool,
}Expand description
Summary statistics for a bump operation.
Provides high-level counts and information about the bump.
§Examples
use sublime_cli_tools::commands::bump::snapshot::BumpSummary;
let summary = BumpSummary {
total_packages: 10,
packages_to_bump: 3,
packages_unchanged: 7,
total_changesets: 2,
has_circular_dependencies: false,
};Fields§
§total_packages: usizeTotal number of packages in workspace.
packages_to_bump: usizeNumber of packages that will be bumped.
packages_unchanged: usizeNumber of packages that won’t be bumped.
total_changesets: usizeTotal number of changesets being processed.
has_circular_dependencies: boolWhether circular dependencies were detected.
Implementations§
Source§impl BumpSummary
impl BumpSummary
Sourcepub const fn new(
total_packages: usize,
packages_to_bump: usize,
total_changesets: usize,
has_circular_dependencies: bool,
) -> Self
pub const fn new( total_packages: usize, packages_to_bump: usize, total_changesets: usize, has_circular_dependencies: bool, ) -> Self
Creates a new BumpSummary from package and changeset counts.
§Arguments
total_packages- Total number of packages in workspacepackages_to_bump- Number of packages that will be bumpedtotal_changesets- Number of changesets being processedhas_circular_dependencies- Whether circular dependencies exist
§Examples
use sublime_cli_tools::commands::bump::snapshot::BumpSummary;
let summary = BumpSummary::new(10, 3, 2, false);
assert_eq!(summary.packages_unchanged, 7);Trait Implementations§
Source§impl Clone for BumpSummary
impl Clone for BumpSummary
Source§fn clone(&self) -> BumpSummary
fn clone(&self) -> BumpSummary
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 BumpSummary
impl Debug for BumpSummary
Source§impl Default for BumpSummary
impl Default for BumpSummary
Source§fn default() -> BumpSummary
fn default() -> BumpSummary
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BumpSummary
impl RefUnwindSafe for BumpSummary
impl Send for BumpSummary
impl Sync for BumpSummary
impl Unpin for BumpSummary
impl UnwindSafe for BumpSummary
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