use crateConfigError;
use crateValidate;
use DeserializeOwned;
/// Trait for configuration types that can be parsed from a string and validated.
///
/// Provides a default implementation for deserializing from formats like TOML or YAML,
/// and a convenience method to validate and build the final config.
/// Blanket implementation of `Config` for any type that
/// implements `Validate` and `DeserializeOwned`.