pub struct WorktreeStateOutput {
pub branch: String,
pub tracking: Option<String>,
pub ahead: u32,
pub behind: u32,
pub uncommitted: usize,
pub clean: bool,
pub sync: bool,
}Fields§
§branch: StringBranch name (short ref).
tracking: Option<String>Upstream tracking branch (e.g. origin/main), None when unset.
ahead: u32§behind: u32§uncommitted: usizeNumber of uncommitted changes (staged + unstaged + untracked).
clean: bool§sync: booltrue when behind == 0 (no incoming work to integrate).
Trait Implementations§
Source§impl Clone for WorktreeStateOutput
impl Clone for WorktreeStateOutput
Source§fn clone(&self) -> WorktreeStateOutput
fn clone(&self) -> WorktreeStateOutput
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 WorktreeStateOutput
impl Debug for WorktreeStateOutput
Source§impl<'de> Deserialize<'de> for WorktreeStateOutput
impl<'de> Deserialize<'de> for WorktreeStateOutput
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 WorktreeStateOutput
Source§impl PartialEq for WorktreeStateOutput
impl PartialEq for WorktreeStateOutput
Source§fn eq(&self, other: &WorktreeStateOutput) -> bool
fn eq(&self, other: &WorktreeStateOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WorktreeStateOutput
impl Serialize for WorktreeStateOutput
impl StructuralPartialEq for WorktreeStateOutput
Auto Trait Implementations§
impl Freeze for WorktreeStateOutput
impl RefUnwindSafe for WorktreeStateOutput
impl Send for WorktreeStateOutput
impl Sync for WorktreeStateOutput
impl Unpin for WorktreeStateOutput
impl UnsafeUnpin for WorktreeStateOutput
impl UnwindSafe for WorktreeStateOutput
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.