aboutsummaryrefslogtreecommitdiff
path: root/src/model/bucket_table.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-08-30 11:24:01 +0200
committerAlex Auvolat <alex@adnab.me>2023-08-30 11:24:01 +0200
commitf7b409f1140addd508c626b1e80f0f8de52a5639 (patch)
tree5aa26db98407793a155a159e29f911890667668a /src/model/bucket_table.rs
parentabf011c2906d04200bb39d7bc82f7ed973215500 (diff)
downloadgarage-f7b409f1140addd508c626b1e80f0f8de52a5639.tar.gz
garage-f7b409f1140addd508c626b1e80f0f8de52a5639.zip
use a NaiveDate in data model, it serializes to string (iso 8601 format)
Diffstat (limited to 'src/model/bucket_table.rs')
-rw-r--r--src/model/bucket_table.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/bucket_table.rs b/src/model/bucket_table.rs
index fed20e05..306a58ab 100644
--- a/src/model/bucket_table.rs
+++ b/src/model/bucket_table.rs
@@ -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)]