[][src]Enum chronver::Label

pub enum Label {
    Text(String),
    Feature {
        branch: String,
        changeset: u32,
    },
}

A label in the version metadata.

Variants

Text(String)

A simple text label without a specific format.

Feature

A feature label in the format BRANCH.CHANGESET, where the changeset can be omitted when it is 0.

Fields of Feature

branch: Stringchangeset: u32

Methods

impl Label[src]

#[must_use] pub fn parse(label: &str) -> Self[src]

Trait Implementations

impl Clone for Label[src]

impl Debug for Label[src]

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

impl Display for Label[src]

impl Eq for Label[src]

impl<'_> From<&'_ str> for Label[src]

impl From<Label> for String[src]

impl Hash for Label[src]

impl Ord for Label[src]

impl PartialEq<Label> for Label[src]

impl PartialOrd<Label> for Label[src]

impl Serialize for Label[src]

impl StructuralEq for Label[src]

impl StructuralPartialEq for Label[src]

Auto Trait Implementations

impl RefUnwindSafe for Label

impl Send for Label

impl Sync for Label

impl Unpin for Label

impl UnwindSafe for Label

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.