[][src]Struct git2::Tag

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

A structure to represent a git tag

Methods

impl<'repo> Tag<'repo>
[src]

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 OID 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

impl<'repo> Clone for Tag<'repo>
[src]

Performs copy-assignment from source. Read more

impl<'repo> Drop for Tag<'repo>
[src]

impl<'repo> Debug for Tag<'repo>
[src]

Auto Trait Implementations

impl<'repo> !Send for Tag<'repo>

impl<'repo> !Sync for Tag<'repo>

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]