[][src]Enum git_checks::checks::ChangelogStyle

pub enum ChangelogStyle {
    Directory {
        path: String,
        extension: Option<String>,
    },
    File {
        path: String,
    },
}

The style of changelog management in use.

Variants

Directory

A directory stores a file per changelog entry.

Fields of Directory

path: String

The path to the directory containing changelog entry files.

extension: Option<String>

The extension used for changelog files.

File

A file contains the changelog entries for a project.

Fields of File

path: String

The path to the changelog.

Methods

impl ChangelogStyle
[src]

pub fn file<P>(path: P) -> Self where
    P: ToString
[src]

A changelog stored in a file at a given path.

pub fn directory<P>(path: P, ext: Option<String>) -> Self where
    P: ToString
[src]

A directory containing many files, each with a changelog entry.

Entries may also be required to have a given extension.

Trait Implementations

impl Debug for ChangelogStyle
[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T
[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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