Return None or Some(view_name)
(&self)
| 77 | |
| 78 | // Return None or Some(view_name) |
| 79 | fn filter(&self) -> Option<String> { |
| 80 | match (&self.account_type, self.access_level) { |
| 81 | |
| 82 | (AccountType::Admin, 1, ) => Some(format!("Super Admin")), |
| 83 | (AccountType::Admin, _, ) => Some(format!("Admin")), |
| 84 | (AccountType::Guest, _, ) => None, |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | |
| 89 |
nothing calls this directly
no outgoing calls
no test coverage detected