1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#[derive(Debug, PartialEq, Eq, Clone, Default)]
pub struct EnumBlock {
pub ident: EnumIdent,
pub values: Vec<EnumValue>,
}
#[derive(Debug, PartialEq, Eq, Clone, Default)]
pub struct EnumValue {
pub value: String,
pub note: Option<String>,
}
#[derive(Debug, PartialEq, Eq, Clone, Default)]
pub struct EnumIdent {
pub name: String,
pub schema: Option<String>,
}