aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-08-29 18:22:03 +0200
committerAlex Auvolat <alex@adnab.me>2023-08-29 18:22:03 +0200
commitabf011c2906d04200bb39d7bc82f7ed973215500 (patch)
treed881ca50b64d229198b8e9da552d70392d26706b /src/model
parent8041d9a8274619b9a7cb66735ed560bcfba16078 (diff)
downloadgarage-abf011c2906d04200bb39d7bc82f7ed973215500.tar.gz
garage-abf011c2906d04200bb39d7bc82f7ed973215500.zip
lifecycle: implement validation into garage's internal data structure
Diffstat (limited to 'src/model')
-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 dc4e4509..fed20e05 100644
--- a/src/model/bucket_table.rs
+++ b/src/model/bucket_table.rs
@@ -90,7 +90,7 @@ mod v08 {
/// A lifecycle filter is a set of conditions that must all be true.
/// For each condition, if it is None, it is not verified (always true),
/// and if it is Some(x), then it is verified for value x
- #[derive(PartialEq, Eq, Clone, Debug, Serialize, Deserialize)]
+ #[derive(PartialEq, Eq, Clone, Debug, Serialize, Deserialize, Default)]
pub struct LifecycleFilter {
/// If Some(x), object key has to start with prefix x
pub prefix: Option<String>,