mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-16 12:45:04 +01:00
table ser
This commit is contained in:
parent
cb3710cd3f
commit
427cfadc11
4 changed files with 1347 additions and 1251 deletions
|
|
@ -6,7 +6,9 @@ mod generated;
|
|||
mod parse_helper;
|
||||
mod write_helper;
|
||||
|
||||
pub type Table = HashMap<String, FieldValue>;
|
||||
pub type TableFieldName = String;
|
||||
|
||||
pub type Table = HashMap<TableFieldName, FieldValue>;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum FieldValue {
|
||||
|
|
@ -22,8 +24,8 @@ pub enum FieldValue {
|
|||
Float(f32),
|
||||
Double(f64),
|
||||
DecimalValue(u8, u32),
|
||||
ShortString(String),
|
||||
LongString(String),
|
||||
ShortString(Shortstr),
|
||||
LongString(Longstr),
|
||||
FieldArray(Vec<FieldValue>),
|
||||
Timestamp(u64),
|
||||
FieldTable(Table),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue