1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
use std::collections::HashMap; pub type ParameterStore = HashMap<String, Parameter>; pub struct Parameter { // string_value: String, // int_value: i128, // float_value: f64, // struct_value: ParameterStore } impl Parameter { pub fn new() -> Parameter { Parameter { // string_value: String::new(), // int_value: 0, // float_value: 0.0, // struct_value: HashMap::new() } } }