Trait envstruct::EnvParseNested
source · 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,
Object Safety§
This trait is not object safe.