Trait smart_config::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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

Implementors§