pub enum Config {
    Root {
        languages: HashMap<String, String>,
    },
    Language {
        input_err_msg: String,
        workflows: HashMap<String, Workflow>,
    },
}
Expand description

The possible types of configuration files (this allows main files to be different from internationalization files).

Variants

Root

Fields

languages: HashMap<String, String>

A map of the languages supported to filenames, a structure that separates each language into a separate Tribble file.

A root configuration file that defines languages that have their own configuration files.

Language

Fields

input_err_msg: String

The error message when a user doesn’t fill out a mandatory field. This is allowed to enable i18n at an arbitrary scale. This field does not support Markdown.

workflows: HashMap<String, Workflow>

All the workflow in this Tribble instance. Each workflow is a separate contribution experience, and multiple workflows are generally best suited for things like separate products.

A configuration file for a single language.

Implementations

Creates a new instance of the raw configuration from a file.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. 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

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 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.