Struct gix_object::TagRef
source · pub struct TagRef<'a> {
pub target: &'a BStr,
pub target_kind: Kind,
pub name: &'a BStr,
pub tagger: Option<SignatureRef<'a>>,
pub message: &'a BStr,
pub pgp_signature: Option<&'a BStr>,
}
Expand description
Represents a git tag, commonly indicating a software release.
Fields§
§target: &'a BStr
The hash in hexadecimal being the object this tag points to. Use target()
to obtain a byte representation.
target_kind: Kind
The kind of object that target
points to.
name: &'a BStr
The name of the tag, e.g. “v1.0”.
tagger: Option<SignatureRef<'a>>
The author of the tag.
message: &'a BStr
The 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, 'a> Deserialize<'de> for TagRef<'a>
impl<'de: 'a, 'a> Deserialize<'de> for TagRef<'a>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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> PartialEq for TagRef<'a>
impl<'a> PartialEq for TagRef<'a>
source§impl<'a> PartialOrd for TagRef<'a>
impl<'a> PartialOrd for TagRef<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> WriteTo for TagRef<'a>
impl<'a> WriteTo for TagRef<'a>
impl<'a> Eq for TagRef<'a>
impl<'a> StructuralPartialEq for TagRef<'a>
Auto Trait Implementations§
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> 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