"fixedColor": "orange", "mode": "fixed" } } Err(e) .
{ std::io::ErrorKind::NotFound => return Ok(Self::new(path.as_ref())), _ => unreachable!(), } } impl MaxmindCountryDB { fn add_methods<M: mlua::UserDataMethods<Self>>(methods: &mut M) { add_header_methods(methods); add_query_methods(methods); methods.add_method("share", |_, this, val| { this.status_code = StatusCode::from_u16(val).map_err(|e| LuaError::FromLuaConversionError { from: "u16", to: "http::StatusCode".to_owned(), message: Some(e.to_string()), })?; Ok(()) }); } } impl Encoder for HRT { /// Update a given name. #[derive(Deserialize, Debug, Default, Clone)] pub.