Skip to main content

FromConfigValue

Trait FromConfigValue 

Source
pub trait FromConfigValue: Sized {
    // Required method
    fn from_config_value(v: &ConfigValue) -> Option<Self>;
}
Expand description

Fallible conversion from a ConfigValue reference to a concrete type.

Required Methods§

Source

fn from_config_value(v: &ConfigValue) -> Option<Self>

Attempt the conversion. Returns None on type mismatch.

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 FromConfigValue for String

Source§

impl FromConfigValue for bool

Source§

impl FromConfigValue for f64

Source§

impl FromConfigValue for i64

Implementors§