pub struct GitStatus {
pub branch: Option<String>,
pub head: Option<String>,
pub upstream: Option<String>,
pub ahead: Option<usize>,
pub behind: Option<usize>,
pub state: String,
pub files: Vec<GitFile>,
pub commits: Vec<GitCommit>,
pub truncated: bool,
}Fields§
§branch: Option<String>§head: Option<String>§upstream: Option<String>§ahead: Option<usize>§behind: Option<usize>§state: String§files: Vec<GitFile>§commits: Vec<GitCommit>§truncated: boolTrait Implementations§
Auto Trait Implementations§
impl Forget for GitStatus
impl Freeze for GitStatuswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<GitFile>: Freeze,
PhantomData<GitCommit>: Freeze,
impl Move for GitStatus
impl RefUnwindSafe for GitStatus
impl Send for GitStatuswhere
RawVecInner: Send,
impl Sync for GitStatuswhere
RawVecInner: Sync,
impl Unpin for GitStatus
impl UnsafeUnpin for GitStatuswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<GitFile>: UnsafeUnpin,
PhantomData<GitCommit>: UnsafeUnpin,
impl UnwindSafe for GitStatuswhere
RawVecInner: UnwindSafe,
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.