pub struct Reference {
pub name: String,
pub kind: String,
pub error: String,
}
Expand description
A reference in a git repository.
Fields§
§name: String
The name of the reference, e.g. "refs/heads/my_branch"
.
kind: String
The kind of reference, e.g. "symbolic"
or "direct"
.
error: String
An error encountered when trying to resolve the reference, or ""
.
Implementations§
Trait Implementations§
Source§impl ShellVars for Reference
impl ShellVars for Reference
Source§fn write_to_shell<W: Write>(&self, out: &ShellWriter<W>)
fn write_to_shell<W: Write>(&self, out: &ShellWriter<W>)
Write
self
to the shell writer out
.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