pub struct Tag {
pub target: ObjectId,
pub target_kind: Kind,
pub name: BString,
pub tagger: Option<Signature>,
pub message: BString,
pub signature: Option<BString>,
}Expand description
A mutable git tag.
Fields§
§target: ObjectIdThe hash this tag is pointing to.
target_kind: KindThe kind of object this tag is pointing to.
name: BStringThe name of the tag, e.g. “v1.0”.
tagger: Option<Signature>The tags author.
message: BStringThe message describing the tag.
signature: Option<BString>Any Git-supported in-body cryptographic signature.
Use signature() to also obtain its detected format.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tag
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Tag
Available on crate feature
serde only.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
impl Eq for Tag
Source§impl Ord for Tag
impl Ord for Tag
1.21.0 (const: unstable) · 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 PartialOrd for Tag
impl PartialOrd for Tag
impl StructuralPartialEq 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