pub struct GitState {
pub is_repo: bool,
pub branch: Option<String>,
pub ahead: u32,
pub behind: u32,
pub dirty: bool,
pub changed_files_count: usize,
pub insertions: u32,
pub deletions: u32,
}Expand description
Shaped GET /api/git/status result: the working-tree state of a repo cwd.
Fields§
§is_repo: bool§branch: Option<String>§ahead: u32§behind: u32§dirty: bool§changed_files_count: usize§insertions: u32§deletions: u32Trait Implementations§
Auto Trait Implementations§
impl Freeze for GitState
impl RefUnwindSafe for GitState
impl Send for GitState
impl Sync for GitState
impl Unpin for GitState
impl UnsafeUnpin for GitState
impl UnwindSafe for GitState
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