diff options
Diffstat (limited to 'src/object/mod.rs')
-rw-r--r-- | src/object/mod.rs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/object/mod.rs b/src/object/mod.rs new file mode 100644 index 0000000..6e643de --- /dev/null +++ b/src/object/mod.rs @@ -0,0 +1,28 @@ +use serde::Serialize; +use std::collections::BTreeMap; + +pub mod helper; +pub mod read; +pub mod parser; + +#[derive(Debug, Clone, Serialize)] +pub enum Value { + Bool(bool), + U8(u8), + I8(i8), + U16(u16), + I16(i16), + U32(u32), + I32(i32), + F32(f32), + U64(u64), + I64(i64), + F64(f64), + Array(Vec<Value>), + Object { + class: String, + fields: BTreeMap<String, Value>, + }, + Typeless(Vec<u8>), + String(String), +} |