pub struct Status {
pub error: Option<String>,
pub git_dirty: Option<bool>,
pub summary: HashMap<String, bool>,
}Expand description
The Status Struct: Holds information about the status of the repo
Fields§
§error: Option<String>Holds any error thrown by git status
git_dirty: Option<bool>Indicates if repo is dirty or not. For this, we check both git status -s and git diff -stat
summary: HashMap<String, bool>A HashMap describing the state of the repo
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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