pub struct BranchInfo {
pub name: String,
pub is_head: bool,
pub tip_unix: i64,
pub ahead: usize,
pub behind: usize,
}Fields§
§name: String§is_head: bool§tip_unix: i64Tip commit’s time as a Unix timestamp, so callers can sort branches newest-first and render an age.
ahead: usizeCommits on this branch its upstream lacks. Zero without an upstream.
behind: usizeCommits on the upstream this branch lacks. Zero without an upstream.
Trait Implementations§
Source§impl Clone for BranchInfo
impl Clone for BranchInfo
Source§fn clone(&self) -> BranchInfo
fn clone(&self) -> BranchInfo
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 BranchInfo
impl Debug for BranchInfo
impl Eq for BranchInfo
Source§impl PartialEq for BranchInfo
impl PartialEq for BranchInfo
impl StructuralPartialEq for BranchInfo
Auto Trait Implementations§
impl Freeze for BranchInfo
impl RefUnwindSafe for BranchInfo
impl Send for BranchInfo
impl Sync for BranchInfo
impl Unpin for BranchInfo
impl UnsafeUnpin for BranchInfo
impl UnwindSafe for BranchInfo
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