pub struct RefEntry {
pub name: String,
pub oid: ObjectId,
pub symref_target: Option<String>,
}Expand description
A single reference entry produced by ls_remote.
Fields§
§name: StringFull reference name, e.g. refs/heads/main, HEAD, or
refs/tags/v1.0^{} for a peeled tag.
oid: ObjectIdThe object ID the reference resolves to.
symref_target: Option<String>Symbolic-ref target for HEAD when Options::symref is set.
Some("refs/heads/main") when HEAD is symbolic; None otherwise.
Trait Implementations§
impl Eq for RefEntry
impl StructuralPartialEq for RefEntry
Auto Trait Implementations§
impl Freeze for RefEntry
impl RefUnwindSafe for RefEntry
impl Send for RefEntry
impl Sync for RefEntry
impl Unpin for RefEntry
impl UnsafeUnpin for RefEntry
impl UnwindSafe for RefEntry
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