use a NaiveDate in data model, it serializes to string (iso 8601 format)

This commit is contained in:
Alex Auvolat
2023-08-30 11:24:01 +02:00
parent abf011c290
commit f7b409f114
5 changed files with 14 additions and 12 deletions
+1
View File
@@ -23,6 +23,7 @@ garage_util.workspace = true
async-trait = "0.1.7"
arc-swap = "1.0"
blake2 = "0.10"
chrono = { version = "0.4", features = ["serde"] }
err-derive = "0.3"
hex = "0.4"
base64 = "0.21"
+1 -1
View File
@@ -105,7 +105,7 @@ mod v08 {
/// Objects expire x days after they were created
AfterDays(usize),
/// Objects expire at date x (must be in yyyy-mm-dd format)
AtDate(String),
AtDate(chrono::naive::NaiveDate),
}
#[derive(Default, PartialEq, Eq, PartialOrd, Ord, Clone, Debug, Serialize, Deserialize)]