Update task snapshot test and clean up details

This commit is contained in:
Loïc Lecrenier 2023-01-17 13:17:47 +01:00
parent c71a8ea183
commit 56e79fa850
5 changed files with 141 additions and 34 deletions

View file

@ -2,13 +2,11 @@ use std::error::Error;
use std::fmt;
use std::str::FromStr;
use serde::{Deserialize, Serialize};
use crate::error::{Code, ErrorCode};
/// An index uid is composed of only ascii alphanumeric characters, - and _, between 1 and 400
/// bytes long
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct IndexUid(String);
impl IndexUid {

View file

@ -8,11 +8,10 @@ pub mod settings;
pub mod star_or;
pub mod tasks;
pub mod versioning;
pub use milli;
pub use milli::{heed, Index};
pub use serde_cs;
use uuid::Uuid;
pub use versioning::VERSION_FILE_NAME;
pub use {milli, serde_cs};
pub type Document = serde_json::Map<String, serde_json::Value>;
pub type InstanceUid = Uuid;