MeiliSearch/dump/src/lib.rs

24 lines
471 B
Rust
Raw Normal View History

2022-09-29 16:17:06 +02:00
use serde::{Deserialize, Serialize};
use time::OffsetDateTime;
// mod dump;
mod error;
mod writer;
pub use error::Error;
pub use writer::DumpWriter;
2022-09-29 16:17:06 +02:00
const CURRENT_DUMP_VERSION: &str = "V6";
pub struct DumpReader;
type Result<T> = std::result::Result<T, Error>;
#[derive(Debug, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
struct Metadata {
pub dump_version: String,
pub db_version: String,
pub dump_date: OffsetDateTime,
}