[][src]Struct conventional_commits_next_semver::types::SemverCompatibleGitTag

pub struct SemverCompatibleGitTag {
    pub oid: Oid,
    pub raw: String,
    pub version: Version,
}

A git tag that is compatible with semantic release versions.

Fields

oid: Oid

The git commit the tag references.

raw: String

The raw git tag name.

version: Version

The semantic release version this matches to.

Implementations

impl SemverCompatibleGitTag[src]

pub fn from(oid: Oid, raw: String, version: Version) -> Self[src]

Creates a new instance with the given values.

Arguments

  • oid: The object id of the tag.
  • raw: The tag's annotation.
  • version: The semantic version of the tag.

Auto Trait Implementations

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> From<T> for T[src]

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

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.