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§
Sourcefn config_prefix() -> &'static str
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.