Struct git2::Tag[][src]

pub struct Tag<'repo> { /* fields omitted */ }
Expand description

A structure to represent a git tag

Implementations

Get the id (SHA1) of a repository tag

Get the message of a tag

Returns None if there is no message or if it is not valid utf8

Get the message of a tag

Returns None if there is no message

Get the name of a tag

Returns None if it is not valid utf8

Get the name of a tag

Recursively peel a tag until a non tag git_object is found

Get the tagger (author) of a tag

If the author is unspecified, then None is returned.

Get the tagged object of a tag

This method performs a repository lookup for the given object and returns it

Get the OID of the tagged object of a tag

Get the ObjectType of the tagged object of a tag

Casts this Tag to be usable as an Object

Consumes Tag to be returned as an Object

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.