mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-15 01:18:54 +01:00
24 lines
471 B
Rust
24 lines
471 B
Rust
use serde::{Deserialize, Serialize};
|
|
use time::OffsetDateTime;
|
|
|
|
// mod dump;
|
|
mod error;
|
|
mod writer;
|
|
|
|
pub use error::Error;
|
|
pub use writer::DumpWriter;
|
|
|
|
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,
|
|
}
|