opencoding/
schema.rs

1#[derive(Debug, Clone, PartialEq, Eq)]
2pub enum FieldType {
3    Boolean,
4    Integer,
5    String,
6    List,
7    Map,
8}
9
10#[derive(Debug, Clone)]
11pub struct Field {
12    pub name: String,
13    pub field_type: FieldType,
14    pub description: Option<String>,
15}
16
17#[derive(Debug, Clone)]
18pub struct TypeDef {
19    pub name: String,
20    pub description: Option<String>,
21    pub fields: Vec<Field>,
22}
23
24#[derive(Debug, Clone)]
25pub struct Spec {
26    pub types: Vec<TypeDef>,
27}