pub struct Tag { /* private fields */ }Expand description
A tag object
Git tags can be ref tags or tag objects; this is the latter.
Implementations§
Source§impl Tag
impl Tag
Sourcepub fn tag_type(&self) -> ObjectType
pub fn tag_type(&self) -> ObjectType
The type of the object pointed to by the tag
Sourcepub fn date(&self) -> Option<DateTime<FixedOffset>>
pub fn date(&self) -> Option<DateTime<FixedOffset>>
The tag date, if it exists
Source§impl Tag
impl Tag
Sourcepub fn tagger_name(&self) -> Option<&[u8]>
pub fn tagger_name(&self) -> Option<&[u8]>
The name of the tagger, if specified
Sourcepub fn tagger_email(&self) -> Option<&[u8]>
pub fn tagger_email(&self) -> Option<&[u8]>
The email address of the tagger, if specified
Sourcepub fn additional_headers(&self) -> ObjectHeaderIter<'_> ⓘ
pub fn additional_headers(&self) -> ObjectHeaderIter<'_> ⓘ
Get an iterator over any additional headers in the tag object.
Additional headers are those not parsed by git-async, e.g. mergetag.
Sourcepub async fn lookup_target<F: FileSystem>(
&self,
repo: &Repo<F>,
) -> GResult<Object>
pub async fn lookup_target<F: FileSystem>( &self, repo: &Repo<F>, ) -> GResult<Object>
Look up the target object of the tag using the provided Repo.
Trait Implementations§
Source§impl Ord for Tag
impl Ord for Tag
Source§impl PartialOrd for Tag
impl PartialOrd for Tag
impl Eq for Tag
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnsafeUnpin for Tag
impl UnwindSafe for Tag
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