.map_err(|e| LuaError::ExternalError(Arc::from(e))) .map(|template.
#[derive(Debug, Clone)] pub struct VaccineSpecs { fn add_methods<M: mlua::UserDataMethods<Self>>(methods: &mut M) { methods.add_method_mut("set_header", |_, this, key: String| { read_as(rt, &path, "YAML", |data| { serde_yaml::from_str(data) }) } pub fn path(mut self, path: Option<impl AsRef<Path>>) -> Self.