Trait stam::FromJson

source ·
pub trait FromJson<'a>where
    Self: TypeInfo + Deserialize<'a>,{
    // Required methods
    fn from_json_file(filename: &str, config: Config) -> Result<Self, StamError>;
    fn from_json_str(string: &str, config: Config) -> Result<Self, StamError>;
}

Required Methods§

source

fn from_json_file(filename: &str, config: Config) -> Result<Self, StamError>

source

fn from_json_str(string: &str, config: Config) -> Result<Self, StamError>

Implementors§