feat: advanced filtering
Allow filtering by name, image name, status, or a combination of all of the three
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user