Struct minver_rs::MinverConfig[][src]

pub struct MinverConfig {
    pub log_level: LogLevel,
    pub auto_increment_level: SemVerLevel,
    pub build_metadata: Option<String>,
    pub prerelease_identifier: String,
    pub tag_prefix: String,
}

Fields

log_level: LogLevel

The verbosity of the output (defaults to WARN).

auto_increment_level: SemVerLevel

The semver level that should be incremented on a prerelease version (defaults to PATCH).

build_metadata: Option<String>

The build metadata that will be appended to the generated version (defaults to None).

prerelease_identifier: String

The identifier that will be used for prerelease versions (defaults to alpha).

tag_prefix: String

Custom prefix that comes before the version in tag names (defaults to an empty string).

Implementations

Reads the configuration from environment variables. The environment variables have the same name as the associate fields with MINVER_ prepended. If an environment variable is not set, the default value will be used.

Creates a MinverConfig with default values.

Trait Implementations

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

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.