mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 16:51:01 +00:00
feat: Make the parsing more generic over json
This commit is contained in:
committed by
Clément Renault
parent
1e14df00d1
commit
22c26a5dd0
12
src/lib.rs
12
src/lib.rs
@ -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,
|
||||
}
|
||||
|
Reference in New Issue
Block a user