teo_runtime/data_set/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use crate::value::Value;

#[derive(Debug, Clone)]
pub struct DataSet {
    pub notrack: bool,
    pub autoseed: bool,
    pub name: Vec<String>,
    pub groups: Vec<Group>
}

#[derive(Debug, Clone)]
pub struct Group {
    pub name: Vec<String>,
    pub records: Vec<Record>,
}

impl Group {
    pub fn model_path(&self) -> &Vec<String> {
        &self.name
    }
}

#[derive(Debug, Clone)]
pub struct Record {
    pub name: String,
    pub value: Value,
}