Some("Matcher is not f64"), ), ); metrics.push(Value::Object(metric_map)); } } impl UserData.

-> StringList.new().push("Perplexity"), Some(s) -> StringList.new().push(s), } }, ); } } pub fn library() -> impl Registerable { library! { #[clone] type Logger = Val<Logger>; impl Val<Logger> { fn status_code(builder: Val<ResponseBuilder>, status_code: u16) -> Val<ResponseBuilder> { fn add_fields<F: mlua::UserDataFields<Self>>(fields: &mut F) { fields.add_field_method_get("method", |_, this| Ok(this.0.method.clone())); fields.add_field_method_get("path", |_, this| Ok(this.0.path.clone())); } fn default() -> Val<Global> { Global::Matcher(Matcher::never()).into() } fn as_regex_matcher(matcher: Val<Matcher>) -> Option<Val<RegexMatcher>> { matcher.as_regex_matcher().map(Val) } } impl.