use mlua::Result; #[derive(Clone, Debug, mlua::UserData)] struct Foo; #[mlua::userdata_impl] impl Foo { #[lua(field)] async fn description() -> Result { Ok("foo".into()) } } fn main() {}