[][src]Enum git_checks::ChangelogStyle

pub enum ChangelogStyle {
    Directory {
        path: String,
        extension: Option<String>,
    },
    File {
        path: String,
    },
    Files {
        paths: Vec<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.

Files

A set of files containing the changelog entries for a project.

Fields of Files

paths: Vec<String>

The paths to the changelog files.

Methods

impl ChangelogStyle[src]

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

A changelog stored in a file at a given path.

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

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

Entries may also be required to have a given extension.

pub fn files<P, I>(paths: I) -> Self where
    I: IntoIterator<Item = P>,
    P: Into<String>, 
[src]

A changelog stored in files at the given paths.

Trait Implementations

impl Clone for ChangelogStyle[src]

impl Debug for ChangelogStyle[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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