pub trait ConfigParser: Sized {
// Required method
fn parse() -> impl Future<Output = Result<Self>>;
}
Expand description
This trait is used to parse a configuration for the application.
The avoid having to manually implement this trait, the bootstrap!
macro in
the scuffle_settings
crate can be used to
generate an implementation.
§See Also
Required Methods§
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.