pub struct StatusReport {
pub branch: String,
pub ahead: u32,
pub behind: u32,
pub staged: Vec<FileStatus>,
pub unstaged: Vec<FileStatus>,
pub untracked: Vec<String>,
pub is_clean: bool,
}Expand description
Full status report for a repository.
Fields§
§branch: StringCurrent branch name.
ahead: u32Commits ahead of the upstream tracking branch.
behind: u32Commits behind the upstream tracking branch.
staged: Vec<FileStatus>Files staged for the next commit (index changes).
unstaged: Vec<FileStatus>Files with unstaged working-tree changes.
untracked: Vec<String>Paths not tracked by git.
is_clean: booltrue when all three lists are empty.
Trait Implementations§
Source§impl Clone for StatusReport
impl Clone for StatusReport
Source§fn clone(&self) -> StatusReport
fn clone(&self) -> StatusReport
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 StatusReport
impl Debug for StatusReport
Source§impl<'de> Deserialize<'de> for StatusReport
impl<'de> Deserialize<'de> for StatusReport
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 StatusReport
impl RefUnwindSafe for StatusReport
impl Send for StatusReport
impl Sync for StatusReport
impl Unpin for StatusReport
impl UnsafeUnpin for StatusReport
impl UnwindSafe for StatusReport
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