{ counter.0.inc_by( amount, &Vec::from([label1.as_ref(), label2.as_ref(), label3.as_ref()]), ); } fn as_asn_matcher(matcher: Val<Matcher>) -> Option<Val<MaxmindCountryDB.

Builder } } } }); fields.add_field_method_get("content_length", |_, this| Ok(this.status_code.as_u16())); fields.add_field_method_set("status", |_, this, (name, value): (String, String)| { this.params.insert(name, value); Ok(()) }); } #[doc(hidden)] impl FromLua for FakeMoustache { fn add_fields<F: mlua::UserDataFields<Self>>(fields: &mut F) { fields.add_field_method_get("status", |_, this| Ok(this.body.clone())); fields.add_field_method_set("body.