This package allows Rust structs/enums to be easily created from Lua.
enum Valuables {
Coins(u32),
Book {name: String},
Knowledge,
}
Can then be created from Lua as:
local a = Valuables.Coins(12)
local b = Valuables.Knowledge
local c = Valuables.Book { name = "A Dance with Dragons" }
See the documentation for more information.