pub struct TagRef<'a> {
pub target: &'a BStr,
pub target_kind: Kind,
pub name: &'a BStr,
pub tagger: Option<&'a BStr>,
pub message: &'a BStr,
pub pgp_signature: Option<&'a BStr>,
}Expand description
Represents a git tag, commonly indicating a software release.
Fields§
§target: &'a BStrThe hash in hexadecimal being the object this tag points to. Use target() to obtain a byte representation.
target_kind: KindThe kind of object that target points to.
name: &'a BStrThe name of the tag, e.g. “v1.0”.
tagger: Option<&'a BStr>The raw tagger header value as encountered during parsing.
Use the tagger() method to obtain a parsed version of it.
message: &'a BStrThe message describing this release.
pgp_signature: Option<&'a BStr>A cryptographic signature over the entire content of the serialized tag object thus far.
Implementations§
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for TagRef<'a>where
'de: 'a,
impl<'de, 'a> Deserialize<'de> for TagRef<'a>where
'de: 'a,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TagRef<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TagRef<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> Ord for TagRef<'a>
impl<'a> Ord for TagRef<'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for TagRef<'a>
impl<'a> PartialOrd for TagRef<'a>
Source§impl<'a> Serialize for TagRef<'a>
impl<'a> Serialize for TagRef<'a>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl WriteTo for TagRef<'_>
impl WriteTo for TagRef<'_>
impl<'a> Copy for TagRef<'a>
impl<'a> Eq for TagRef<'a>
impl<'a> StructuralPartialEq for TagRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for TagRef<'a>
impl<'a> RefUnwindSafe for TagRef<'a>
impl<'a> Send for TagRef<'a>
impl<'a> Sync for TagRef<'a>
impl<'a> Unpin for TagRef<'a>
impl<'a> UnsafeUnpin for TagRef<'a>
impl<'a> UnwindSafe for TagRef<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.