pub struct Branch {
pub name: String,
pub tip: String,
pub upstream: Option<String>,
pub gone: bool,
pub worktree: Option<String>,
}Expand description
One local branch, as git for-each-ref reports it.
Fields§
§name: StringThe short ref name.
tip: StringThe full object name at the tip.
upstream: Option<String>The configured upstream’s short name, where one is configured.
gone: boolWhether the configured upstream no longer exists.
worktree: Option<String>The worktree the branch is checked out in, where it is.
Trait Implementations§
impl Eq for Branch
impl StructuralPartialEq for Branch
Auto Trait Implementations§
impl Freeze for Branch
impl RefUnwindSafe for Branch
impl Send for Branch
impl Sync for Branch
impl Unpin for Branch
impl UnsafeUnpin for Branch
impl UnwindSafe for Branch
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