Struct git2::Tag [−][src]
pub struct Tag<'repo> { /* fields omitted */ }
Expand description
A structure to represent a git tag
Implementations
impl<'repo> Tag<'repo>
[src]
impl<'repo> Tag<'repo>
[src]pub fn message(&self) -> Option<&str>
[src]
pub fn message(&self) -> Option<&str>
[src]Get the message of a tag
Returns None if there is no message or if it is not valid utf8
pub fn message_bytes(&self) -> Option<&[u8]>
[src]
pub fn message_bytes(&self) -> Option<&[u8]>
[src]Get the message of a tag
Returns None if there is no message
pub fn name_bytes(&self) -> &[u8]ⓘ
[src]
pub fn name_bytes(&self) -> &[u8]ⓘ
[src]Get the name of a tag
pub fn peel(&self) -> Result<Object<'repo>, Error>
[src]
pub fn peel(&self) -> Result<Object<'repo>, Error>
[src]Recursively peel a tag until a non tag git_object is found
pub fn tagger(&self) -> Option<Signature<'_>>
[src]
pub fn tagger(&self) -> Option<Signature<'_>>
[src]Get the tagger (author) of a tag
If the author is unspecified, then None
is returned.
pub fn target(&self) -> Result<Object<'repo>, Error>
[src]
pub fn target(&self) -> Result<Object<'repo>, Error>
[src]Get the tagged object of a tag
This method performs a repository lookup for the given object and returns it
pub fn target_type(&self) -> Option<ObjectType>
[src]
pub fn target_type(&self) -> Option<ObjectType>
[src]Get the OID of the tagged object of a tag
pub fn into_object(self) -> Object<'repo>
[src]
pub fn into_object(self) -> Object<'repo>
[src]Consumes Tag to be returned as an Object
Trait Implementations
Auto Trait Implementations
impl<'repo> RefUnwindSafe for Tag<'repo>
impl<'repo> !Send for Tag<'repo>
impl<'repo> !Sync for Tag<'repo>
impl<'repo> Unpin for Tag<'repo>
impl<'repo> UnwindSafe for Tag<'repo>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more