pub struct GitRefState {
pub flags: u8,
pub oid: GitOid,
pub peeled: GitOid,
pub target: String,
}Expand description
One ref, keyed by name in GitStateMirror::refs.
Fields§
§flags: u8§oid: GitOid§peeled: GitOidValid only with GIT_REF_PEELED_VALID.
target: StringThe symbolic target’s ref name, with GIT_REF_SYMBOLIC; empty
otherwise. This is how a client names the default branch instead of
guessing main then master.
Trait Implementations§
Source§impl Clone for GitRefState
impl Clone for GitRefState
Source§fn clone(&self) -> GitRefState
fn clone(&self) -> GitRefState
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 GitRefState
impl Debug for GitRefState
Source§impl Default for GitRefState
impl Default for GitRefState
Source§fn default() -> GitRefState
fn default() -> GitRefState
Returns the “default value” for a type. Read more
impl Eq for GitRefState
Source§impl PartialEq for GitRefState
impl PartialEq for GitRefState
impl StructuralPartialEq for GitRefState
Auto Trait Implementations§
impl Freeze for GitRefState
impl RefUnwindSafe for GitRefState
impl Send for GitRefState
impl Sync for GitRefState
impl Unpin for GitRefState
impl UnsafeUnpin for GitRefState
impl UnwindSafe for GitRefState
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