pub trait EnvParseNested {
// Required methods
fn parse_from_env_var(
var_name: impl AsRef<str>,
default: Option<&str>,
) -> Result<Self, EnvStructError>
where Self: Sized;
fn get_env_entries(
prefix: impl AsRef<str>,
default: Option<&str>,
) -> Result<Vec<EnvEntry>, EnvStructError>;
// Provided methods
fn new() -> Result<Self, EnvStructError>
where Self: Sized { ... }
fn with_prefix(prefix: impl AsRef<str>) -> Result<Self, EnvStructError>
where Self: Sized { ... }
}Required Methods§
fn parse_from_env_var(
var_name: impl AsRef<str>,
default: Option<&str>,
) -> Result<Self, EnvStructError>where
Self: Sized,
fn get_env_entries( prefix: impl AsRef<str>, default: Option<&str>, ) -> Result<Vec<EnvEntry>, EnvStructError>
Provided Methods§
fn new() -> Result<Self, EnvStructError>where
Self: Sized,
fn with_prefix(prefix: impl AsRef<str>) -> Result<Self, EnvStructError>where
Self: Sized,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.