pub trait SettingsData:
DeserializeOwned
+ JsonSchema
+ Any
+ Send
+ Sync { }Expand description
The bounds a Rust type must meet for settings to be read into it from data.
The trait is implemented for every type that implements both
serde::de::DeserializeOwned, which reads the data, and
schemars::JsonSchema, from which the schema of the settings is derived
(and is Send + Sync + 'static). A crate outside this library that declares
settings of its own lists serde and schemars as dependencies in its
manifest and derives both traits on its settings types.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".