pub trait FromEnvStr: Sized {
// Required method
fn from_env_str(s: &str) -> Result<Self, String>;
}Expand description
Parse a value from an environment variable string.
Implement this trait to support custom field types in #[derive(Config)] structs.
Required Methods§
fn from_env_str(s: &str) -> Result<Self, String>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".