pub struct ParsedGitRef<'a> {
pub kind: GitRefKind,
pub name: &'a str,
pub remote: &'a str,
}Expand description
A parsed Git ref name: its kind, short name, and owning remote.
Fields§
§kind: GitRefKind§name: &'a strShort name beneath the namespace, e.g. main for refs/heads/main
or feature/x for refs/remotes/origin/feature/x.
remote: &'a strOwning remote. Local content refs report
REMOTE_NAME_FOR_LOCAL_GIT_REPO.
Trait Implementations§
Source§impl<'a> Clone for ParsedGitRef<'a>
impl<'a> Clone for ParsedGitRef<'a>
Source§fn clone(&self) -> ParsedGitRef<'a>
fn clone(&self) -> ParsedGitRef<'a>
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 moreimpl<'a> Copy for ParsedGitRef<'a>
Source§impl<'a> Debug for ParsedGitRef<'a>
impl<'a> Debug for ParsedGitRef<'a>
impl<'a> Eq for ParsedGitRef<'a>
Source§impl<'a> PartialEq for ParsedGitRef<'a>
impl<'a> PartialEq for ParsedGitRef<'a>
impl<'a> StructuralPartialEq for ParsedGitRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ParsedGitRef<'a>
impl<'a> RefUnwindSafe for ParsedGitRef<'a>
impl<'a> Send for ParsedGitRef<'a>
impl<'a> Sync for ParsedGitRef<'a>
impl<'a> Unpin for ParsedGitRef<'a>
impl<'a> UnsafeUnpin for ParsedGitRef<'a>
impl<'a> UnwindSafe for ParsedGitRef<'a>
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