Skip to content

Add allowed values (enum) on field #12

@LazyMechanic

Description

@LazyMechanic

I think it will look like:

#[derive(opg::OpgModel)]
struct Struct {
    #[opg("Some value", enum = "Value1,Value2,Value3")]
    value: String,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions