pub struct HeadInfo {
pub branch: Option<String>,
pub oid7: String,
pub subject: String,
pub upstream: Option<String>,
}Fields§
§branch: Option<String>Branch shorthand; None when HEAD is detached.
oid7: StringAbbreviated commit id; empty on an unborn branch.
subject: StringFirst line of the HEAD commit message; empty on an unborn branch.
upstream: Option<String>Upstream branch shorthand, if configured.
Trait Implementations§
impl Eq for HeadInfo
impl StructuralPartialEq for HeadInfo
Auto Trait Implementations§
impl Freeze for HeadInfo
impl RefUnwindSafe for HeadInfo
impl Send for HeadInfo
impl Sync for HeadInfo
impl Unpin for HeadInfo
impl UnsafeUnpin for HeadInfo
impl UnwindSafe for HeadInfo
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,
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.