start writting the compat layer between v5 and v6

This commit is contained in:
Tamo 2022-10-05 20:11:07 +02:00 committed by Clément Renault
parent 998b3533f5
commit 4958bf3a55
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
11 changed files with 909 additions and 38 deletions

View file

@ -45,13 +45,6 @@ use uuid::Uuid;
use crate::{IndexMetadata, Result, Version};
use self::{
keys::Key,
meta::{DumpMeta, IndexUuid},
settings::{Checked, Settings, Unchecked},
tasks::Task,
};
use super::{DumpReader, IndexReader};
mod keys;
@ -59,6 +52,14 @@ mod meta;
mod settings;
mod tasks;
pub use keys::*;
pub use meta::*;
pub use settings::*;
pub use tasks::*;
pub type Document = serde_json::Map<String, serde_json::Value>;
pub type UpdateFile = File;
#[derive(Serialize, Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct Metadata {