pub struct RepoStatus {}Expand description
Per-repository status snapshot produced by inspect. Field order is the
documented JSON serialization order.
Fields§
§name: String§path: PathBuf§branch: Option<String>§upstream: Option<String>§ahead: u32§behind: u32§dirty: bool§staged: u32§unstaged: u32§untracked: u32§state: RepoState§error: Option<String>§detached_sha: Option<String>Short SHA exposed for the CLI’s detached-HEAD warn! line. Skipped
from JSON output: the agent contract is branch: null + state: detached, the SHA is a diagnostic for humans.
Trait Implementations§
Source§impl Clone for RepoStatus
impl Clone for RepoStatus
Source§fn clone(&self) -> RepoStatus
fn clone(&self) -> RepoStatus
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 RepoStatus
impl Debug for RepoStatus
Auto Trait Implementations§
impl Freeze for RepoStatus
impl RefUnwindSafe for RepoStatus
impl Send for RepoStatus
impl Sync for RepoStatus
impl Unpin for RepoStatus
impl UnsafeUnpin for RepoStatus
impl UnwindSafe for RepoStatus
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