pub struct TagData {
pub object: ObjectId,
pub object_type: String,
pub tag: String,
pub tagger: Option<String>,
pub extra_headers: Vec<u8>,
pub message: String,
pub raw_message: Option<Vec<u8>>,
}Expand description
Parsed representation of an annotated tag object.
Fields§
§object: ObjectIdThe object this tag points to.
object_type: StringThe type of the tagged object (e.g. "commit").
tag: StringThe short tag name (without refs/tags/ prefix).
tagger: Option<String>The tagger identity and timestamp (raw Git format).
extra_headers: Vec<u8>Extra header lines after tagger and before the blank line (raw bytes, LF-terminated).
message: StringThe tag message (everything after the blank line), lossily decoded when not UTF-8.
raw_message: Option<Vec<u8>>Optional raw message bytes for non-UTF-8 tag messages.
When set, serialize_tag writes these bytes unchanged so parse→serialize keeps the object id.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TagData
impl RefUnwindSafe for TagData
impl Send for TagData
impl Sync for TagData
impl Unpin for TagData
impl UnsafeUnpin for TagData
impl UnwindSafe for TagData
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