pub trait FromStringValue: Sized + Any {
// Required method
fn from_str_value(
context: &mut ConfigContext<'_>,
value: &str,
) -> Result<Self, ConfigError>;
}Expand description
Get from string.
Required Methods§
Sourcefn from_str_value(
context: &mut ConfigContext<'_>,
value: &str,
) -> Result<Self, ConfigError>
fn from_str_value( context: &mut ConfigContext<'_>, value: &str, ) -> Result<Self, ConfigError>
Convert from string value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl FromStringValue for IpAddr
impl FromStringValue for IpAddr
fn from_str_value( _: &mut ConfigContext<'_>, value: &str, ) -> Result<Self, ConfigError>
Source§impl FromStringValue for Ipv4Addr
impl FromStringValue for Ipv4Addr
fn from_str_value( _: &mut ConfigContext<'_>, value: &str, ) -> Result<Self, ConfigError>
Source§impl FromStringValue for Ipv6Addr
impl FromStringValue for Ipv6Addr
fn from_str_value( _: &mut ConfigContext<'_>, value: &str, ) -> Result<Self, ConfigError>
Source§impl FromStringValue for Level
Available on crate feature log only.
impl FromStringValue for Level
Available on crate feature
log only.fn from_str_value( context: &mut ConfigContext<'_>, value: &str, ) -> Result<Self, ConfigError>
Source§impl FromStringValue for LevelFilter
Available on crate feature log only.
impl FromStringValue for LevelFilter
Available on crate feature
log only.