pub fn from_yaml_str(conf: &str) -> Result<DeviceSettings> {
        let settings: DeviceSettings = serde_yaml::from_str(conf)
            .map_err(|e| Error::DeserializationFailed("DeviceSettings".to_owned(), e))?;
        Ok(settings)
    }
/// Creates a `DeviceSettings` from a yaml str.
Creates a `DeviceSettings` from a yaml str.
Creates a ` DeviceSettings ` from a yaml str .
pub fn from_yaml_str(conf: &str) -> Result<DeviceSettings> {
        let settings: DeviceSettings = serde_yaml::from_str(conf)
            .map_err(|e| Error::DeserializationFailed("DeviceSettings".to_owned(), e))?;
        Ok(settings)
    }
pub fn from_yaml_str ( conf : & str ) -> Result < DeviceSettings > { let settings : DeviceSettings = serde_yaml :: from_str ( conf ) . map_err ( | e | Error :: DeserializationFailed ( " " . to_owned ( ) , e ) ) ? ; Ok ( settings ) }
Creates a `DeviceSettings` from a yaml str.
Creates a ` DeviceSettings ` from a yaml str .
conf
&str
conf
&str