pub struct RepositoryWorktreeSummary {
pub total_worktrees: usize,
pub clean_worktrees: usize,
pub dirty_worktrees: usize,
pub worktrees_with_remote: usize,
pub merged_worktrees: usize,
pub worktrees_with_unpushed: usize,
pub health_score: f32,
}Expand description
Repository-level summary statistics for worktree management
Fields§
§total_worktrees: usizeTotal number of worktrees (including main)
clean_worktrees: usizeNumber of clean worktrees
dirty_worktrees: usizeNumber of worktrees with uncommitted changes
worktrees_with_remote: usizeNumber of worktrees with remote tracking
merged_worktrees: usizeNumber of worktrees that appear merged
worktrees_with_unpushed: usizeNumber of worktrees with unpushed commits
health_score: f32Overall health score (0.0 to 1.0)
Implementations§
Source§impl RepositoryWorktreeSummary
impl RepositoryWorktreeSummary
Sourcepub fn from_worktrees(worktrees: &[WorktreeInfo]) -> Self
pub fn from_worktrees(worktrees: &[WorktreeInfo]) -> Self
Create summary from a list of worktrees
Sourcepub fn summary_description(&self) -> String
pub fn summary_description(&self) -> String
Get a summary description string
Sourcepub fn health_icon(&self) -> &'static str
pub fn health_icon(&self) -> &'static str
Get health status icon
Sourcepub fn health_description(&self) -> String
pub fn health_description(&self) -> String
Get health description
Trait Implementations§
Source§impl Clone for RepositoryWorktreeSummary
impl Clone for RepositoryWorktreeSummary
Source§fn clone(&self) -> RepositoryWorktreeSummary
fn clone(&self) -> RepositoryWorktreeSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RepositoryWorktreeSummary
impl Debug for RepositoryWorktreeSummary
Source§impl<'de> Deserialize<'de> for RepositoryWorktreeSummary
impl<'de> Deserialize<'de> for RepositoryWorktreeSummary
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 RepositoryWorktreeSummary
impl RefUnwindSafe for RepositoryWorktreeSummary
impl Send for RepositoryWorktreeSummary
impl Sync for RepositoryWorktreeSummary
impl Unpin for RepositoryWorktreeSummary
impl UnsafeUnpin for RepositoryWorktreeSummary
impl UnwindSafe for RepositoryWorktreeSummary
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