Trait ExampleConfig

Source
pub trait ExampleConfig {
    // Required method
    fn example_config() -> Self;
}
Expand description

Provides an example for this configuration. The produced config can be used in tests etc.

For struct configs, this can be derived via the corresponding proc macro.

Required Methods§

Source

fn example_config() -> Self

Constructs an example configuration.

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.

Implementations on Foreign Types§

Source§

impl<T: ExampleConfig> ExampleConfig for Option<T>

Implementors§