Trait Configurable

Source
pub trait Configurable {
    // Required method
    fn config_prefix() -> &'static str;
}
Expand description

The Configurable trait marks whether the struct can read configuration from the ConfigRegistry

Required Methods§

Source

fn config_prefix() -> &'static str

Prefix used to read toml configuration. If you need to load external configuration, you need to rewrite this method

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§