pub enum ChangelogConfig {
    // some variants omitted
}
Expand description

Configuration for the Changelog check.

Requires the style key which indicates what style of changelog is used. Must be one of "directory" or "file".

For both styles, the path key is required. This is the path to the file or directory containing changelog information. The required key is a boolean that defaults to false. The directory style also has an optional extension key which is a string that changelog files in the directory are expected to have.

This check is registered as a commit check with the name "changelog" and a topic check with the name "changelog/topic".

Examples

{
    "style": "directory",
    "path": "path/to/directory",
    "extension": "md",
    "required": false
}
{
    "style": "file",
    "path": "path/to/changelog.file",
    "required": false
}
{
    "style": "files",
    "paths": [
        "path/to/first/changelog.file"
        "path/to/second/changelog.file"
    ],
    "required": false
}

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

The check parsed by this configuration.

Create a new instance of the check from the configuration.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.