feat: advanced filtering

Allow filtering by name, image name, status, or a combination of all of the three
This commit is contained in:
Jack Wills
2024-07-24 14:20:29 +00:00
parent 91b451c6a3
commit 26a2cf55d2
5 changed files with 390 additions and 55 deletions
+4
View File
@@ -75,6 +75,10 @@ macro_rules! unit_struct {
pub fn set(&mut self, value: String) {
self.0 = value;
}
pub fn contains(&self, term: &str) -> bool {
self.0.to_lowercase().contains(term)
}
}
impl std::fmt::Display for $name {