pub struct RepoSummary {
pub branch: Option<String>,
pub staged: usize,
pub modified: usize,
pub untracked: usize,
pub conflicted: usize,
pub ahead: usize,
pub behind: usize,
}Expand description
Compact summary used to draw the per-card indicator. Also embedded in
RepoInfo so the Detail view doesn’t re-collect the same data.
Fields§
§branch: Option<String>Current branch shorthand (e.g. "main"). None for detached HEAD
or when the ref cannot be read.
staged: usize§modified: usize§untracked: usize§conflicted: usize§ahead: usize§behind: usizeImplementations§
Trait Implementations§
Source§impl Clone for RepoSummary
impl Clone for RepoSummary
Source§fn clone(&self) -> RepoSummary
fn clone(&self) -> RepoSummary
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 RepoSummary
impl Debug for RepoSummary
Source§impl Default for RepoSummary
impl Default for RepoSummary
Source§fn default() -> RepoSummary
fn default() -> RepoSummary
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RepoSummary
impl RefUnwindSafe for RepoSummary
impl Send for RepoSummary
impl Sync for RepoSummary
impl Unpin for RepoSummary
impl UnsafeUnpin for RepoSummary
impl UnwindSafe for RepoSummary
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