pub struct BranchRef {
pub name: String,
pub head: String,
pub upstream: Option<UpstreamState>,
pub worktree: Option<PathBuf>,
}Expand description
One local branch as for-each-ref reports it.
Fields§
§name: StringShort name.
head: StringThe commit.
upstream: Option<UpstreamState>The upstream, when configured.
worktree: Option<PathBuf>The work tree holding it, when one does.
Trait Implementations§
impl Eq for BranchRef
impl StructuralPartialEq for BranchRef
Auto Trait Implementations§
impl Freeze for BranchRef
impl RefUnwindSafe for BranchRef
impl Send for BranchRef
impl Sync for BranchRef
impl Unpin for BranchRef
impl UnsafeUnpin for BranchRef
impl UnwindSafe for BranchRef
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.