mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-08 13:53:13 +00:00
Rename and change query filters
This commit is contained in:
+2
-2
@@ -19,7 +19,7 @@ impl PartitionKey for EmptyKey {
|
||||
|
||||
#[derive(Clone, Copy, Debug, Serialize, Deserialize)]
|
||||
pub enum DeletedFilter {
|
||||
All,
|
||||
Any,
|
||||
Deleted,
|
||||
NotDeleted,
|
||||
}
|
||||
@@ -27,7 +27,7 @@ pub enum DeletedFilter {
|
||||
impl DeletedFilter {
|
||||
pub fn apply(&self, deleted: bool) -> bool {
|
||||
match self {
|
||||
DeletedFilter::All => true,
|
||||
DeletedFilter::Any => true,
|
||||
DeletedFilter::Deleted => deleted,
|
||||
DeletedFilter::NotDeleted => !deleted,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user