pub struct StatusOutput {
pub branch: Option<String>,
pub head_sha: Option<String>,
pub staged: Vec<EntryStatus>,
pub unstaged: Vec<EntryStatus>,
pub untracked: Vec<PathBuf>,
pub clean: bool,
}Fields§
§branch: Option<String>Current branch name (HEAD short name), None on detached HEAD.
head_sha: Option<String>HEAD commit sha (full 40-char hex), None for an unborn HEAD.
staged: Vec<EntryStatus>Entries with staged changes (index vs HEAD).
unstaged: Vec<EntryStatus>Entries with unstaged changes (worktree vs index).
untracked: Vec<PathBuf>Paths git reports as untracked (worktree-only files).
clean: booltrue when staged + unstaged + untracked are all empty.
Trait Implementations§
Source§impl Clone for StatusOutput
impl Clone for StatusOutput
Source§fn clone(&self) -> StatusOutput
fn clone(&self) -> StatusOutput
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 StatusOutput
impl Debug for StatusOutput
Source§impl<'de> Deserialize<'de> for StatusOutput
impl<'de> Deserialize<'de> for StatusOutput
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
impl Eq for StatusOutput
Source§impl PartialEq for StatusOutput
impl PartialEq for StatusOutput
Source§impl Serialize for StatusOutput
impl Serialize for StatusOutput
impl StructuralPartialEq for StatusOutput
Auto Trait Implementations§
impl Freeze for StatusOutput
impl RefUnwindSafe for StatusOutput
impl Send for StatusOutput
impl Sync for StatusOutput
impl Unpin for StatusOutput
impl UnsafeUnpin for StatusOutput
impl UnwindSafe for StatusOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.