From 5d22c7bccef8255e7ca483b75bfc4f746226dea3 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Wed, 30 Nov 2022 14:51:21 +0100 Subject: [PATCH] Make some dump types Clone --- dump/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dump/src/lib.rs b/dump/src/lib.rs index 5be680c12..7a7b9a5b7 100644 --- a/dump/src/lib.rs +++ b/dump/src/lib.rs @@ -23,7 +23,7 @@ const CURRENT_DUMP_VERSION: Version = Version::V6; type Result = std::result::Result; -#[derive(Debug, PartialEq, Eq, Serialize, Deserialize)] +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Metadata { pub dump_version: Version, @@ -32,7 +32,7 @@ pub struct Metadata { pub dump_date: OffsetDateTime, } -#[derive(Debug, PartialEq, Eq, Serialize, Deserialize)] +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct IndexMetadata { pub uid: String, @@ -43,7 +43,7 @@ pub struct IndexMetadata { pub updated_at: OffsetDateTime, } -#[derive(Debug, PartialEq, Eq, Deserialize, Serialize)] +#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize, Serialize)] pub enum Version { V1, V2,