fn extract_setting_type(s: &str) -> Result<SettingType, Error> {
    match s {
        "unknown" => Ok(SettingType::Unknown),
        _ => Err(failure::format_err!("unknown type:{}", s)),
    }
}
/// Converts argument string into a known SettingType. Will return an error if
/// no suitable type can be determined.
Converts argument string into a known SettingType. Will return an error if
no suitable type can be determined.
Converts argument string into a known SettingType . Will return an error if no suitable type can be determined .
fn extract_setting_type(s: &str) -> Result<SettingType, Error> {
    match s {
        "unknown" => Ok(SettingType::Unknown),
        _ => Err(failure::format_err!("unknown type:{}", s)),
    }
}
fn extract_setting_type ( s : & str ) -> Result < SettingType , Error > { match s { " " => Ok ( SettingType :: Unknown ) , _ => Err ( failure :: format_err ! ( " " s ) ) , } }
Converts argument string into a known SettingType.
Converts argument string into a known SettingType .
s
&str
s
&str