feat: Make the parsing more generic over json

This commit is contained in:
Kerollmops
2018-05-13 15:12:15 +02:00
committed by Clément Renault
parent 1e14df00d1
commit 22c26a5dd0
4 changed files with 57 additions and 583 deletions

View File

@ -14,3 +14,15 @@ pub use self::map::{
};
pub use self::levenshtein::LevBuilder;
#[derive(Debug, Serialize, Deserialize)]
pub struct Value {
pub id: u64,
pub attr_index: AttrIndex,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct AttrIndex {
pub attribute: u8,
pub index: u64,
}