Enum tribble_app::parser::Config
source · [−]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
A root configuration file that defines languages that have their own configuration files.
Language
Fields
input_err_msg: StringThe 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.
A configuration file for a single language.
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more