pub struct Reference {
pub name: String,
pub target: Oid,
pub is_branch: bool,
pub is_tag: bool,
}Expand description
A git reference (branch, tag, or HEAD).
Fields§
§name: StringFully qualified or symbolic reference name.
target: OidTarget object ID.
is_branch: boolWhether this reference is a branch.
is_tag: boolWhether this reference is a tag.
Trait Implementations§
impl Eq for Reference
impl StructuralPartialEq for Reference
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnsafeUnpin for Reference
impl UnwindSafe for Reference
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