opg
opg copied to clipboard
Add allowed values (enum) on field
I think it will look like:
#[derive(opg::OpgModel)]
struct Struct {
#[opg("Some value", enum = "Value1,Value2,Value3")]
value: String,
}