pub struct LsRemoteRecord {
pub oid: ObjectId,
pub name: String,
pub symref: Option<String>,
}Expand description
One advertised ref returned by ls_remote — what the CLI prints as a
<oid>\t<name> line (with an optional preceding ref: <symref>\t<name> line
when --symref is set and symref is present).
Fields§
§oid: ObjectIdThe object id the ref points at (peeled to the tag object for ^{}
records).
name: StringThe full ref name (e.g. refs/heads/main, HEAD, or refs/tags/v1^{}).
symref: Option<String>The symref target, when the remote advertised this ref as a symbolic ref
(e.g. HEAD → refs/heads/main).
Trait Implementations§
Source§impl Clone for LsRemoteRecord
impl Clone for LsRemoteRecord
Source§fn clone(&self) -> LsRemoteRecord
fn clone(&self) -> LsRemoteRecord
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 moreAuto Trait Implementations§
impl Freeze for LsRemoteRecord
impl RefUnwindSafe for LsRemoteRecord
impl Send for LsRemoteRecord
impl Sync for LsRemoteRecord
impl Unpin for LsRemoteRecord
impl UnsafeUnpin for LsRemoteRecord
impl UnwindSafe for LsRemoteRecord
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