Skip to main content

IAppOptions

Trait IAppOptions 

Source
pub trait IAppOptions:
    for<'de> Deserialize<'de>
    + Default
    + Send
    + Sync
    + 'static { }
Expand description

Application options — binds to a section of appsettings.json.

Users define their own structs implementing this trait, then call AppConfig::bind() to bind values.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> IAppOptions for T
where T: for<'de> Deserialize<'de> + Default + Send + Sync + 'static,