write the v5 dump import

This commit is contained in:
Tamo 2022-10-04 19:53:20 +02:00 committed by Clément Renault
parent 22b2fa0576
commit 9d6987a412
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
4 changed files with 246 additions and 34 deletions

View file

@ -2,7 +2,10 @@ use serde::{Deserialize, Serialize};
use time::OffsetDateTime;
use uuid::Uuid;
use super::settings::{Settings, Unchecked};
use super::{
meta::IndexUid,
settings::{Settings, Unchecked},
};
pub type TaskId = u32;
pub type BatchId = u32;
@ -56,9 +59,6 @@ pub enum TaskContent {
},
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
pub struct IndexUid(String);
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum IndexDocumentsMethod {
/// Replace the previous document with the new one,