Struct git_object::mutable::Tag[][src]

pub struct Tag {
    pub target: ObjectId,
    pub target_kind: Kind,
    pub name: BString,
    pub message: BString,
    pub signature: Option<Signature>,
    pub pgp_signature: Option<BString>,
}

A mutable git tag.

Fields

target: ObjectId

The hash this tag is pointing to.

target_kind: Kind

The kind of object this tag is pointing to.

name: BString

The name of the tag, e.g. “v1.0”.

message: BString

The message describing the tag.

signature: Option<Signature>

The tags author.

pgp_signature: Option<BString>

A pgp signature over all bytes of the encoded tag, excluding the pgp signature itself.

Implementations

impl Tag[src]

pub fn write_to(&self, out: impl Write) -> Result<()>[src]

Writes the encoded tag to out.

Trait Implementations

impl Clone for Tag[src]

impl Debug for Tag[src]

impl<'de> Deserialize<'de> for Tag[src]

impl Eq for Tag[src]

impl From<Tag<'_>> for Tag[src]

impl From<Tag> for Object[src]

impl Hash for Tag[src]

impl Ord for Tag[src]

impl PartialEq<Tag> for Tag[src]

impl PartialOrd<Tag> for Tag[src]

impl Serialize for Tag[src]

impl StructuralEq for Tag[src]

impl StructuralPartialEq for Tag[src]

impl TryFrom<Object> for Tag[src]

type Error = Object

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Tag

impl Send for Tag

impl Sync for Tag

impl Unpin for Tag

impl UnwindSafe for Tag

Blanket Implementations

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

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

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

impl<T> Conv for T

impl<T> Conv for T

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> FmtForward for T

impl<T> From<T> for T[src]

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.