1 2 3 4 5 6 7 8 9 10 11 12 13
struct Gauge { label: String, } structio::object!(write_only Gauge { label | "name" }); enum Level { Low, } structio::unit_enum!(write_only Level { Low | "low" }); fn main() {}