1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use std::collections::BTreeMap; #[derive(Debug, Clone, PartialEq)] pub enum MetaValue { Null, Bool(bool), Int(i64), Float(f64), String(String), Bytes(Vec<u8>), List(Vec<MetaValue>), Map(MetaMap), } pub type MetaMap = BTreeMap<String, MetaValue>;