[][src]Struct conventional_commits_types::Footer

pub struct Footer<'a> {
    pub token: &'a str,
    pub separator: FooterSeparator,
    pub value: &'a str,
}

A commit message footer.

Fields

token: &'a str

The footer word token.

separator: FooterSeparator

The separator.

value: &'a str

The footer's value.

Implementations

impl<'a> Footer<'a>[src]

pub fn new() -> Self[src]

Creates a default footer.

pub fn from(token: &'a str, separator: FooterSeparator, value: &'a str) -> Self[src]

Creates a footer with the given values.

Trait Implementations

impl<'a> Clone for Footer<'a>[src]

impl<'a> Debug for Footer<'a>[src]

impl<'a> Default for Footer<'a>[src]

impl<'a> Eq for Footer<'a>[src]

impl<'a> Hash for Footer<'a>[src]

impl<'a> PartialEq<Footer<'a>> for Footer<'a>[src]

impl<'a> StructuralEq for Footer<'a>[src]

impl<'a> StructuralPartialEq for Footer<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Footer<'a>

impl<'a> Send for Footer<'a>

impl<'a> Sync for Footer<'a>

impl<'a> Unpin for Footer<'a>

impl<'a> UnwindSafe for Footer<'a>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.