pub enum Reference {
Direct(ObjectId),
Symbolic(String),
}Expand description
A git reference (branch, tag, or symbolic ref).
Variants§
Direct(ObjectId)
Direct reference to an object.
Symbolic(String)
Symbolic reference (e.g., HEAD -> refs/heads/main).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin 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