(&self)
| 55 | |
| 56 | impl Entity { |
| 57 | pub fn entity_type(&self) -> EntityType { |
| 58 | match self { |
| 59 | Entity::DockerHost(_) => EntityType::DockerHost, |
| 60 | Entity::Notification(_) => EntityType::Notification, |
| 61 | Entity::Monitor(monitor) => EntityType::Monitor(monitor.monitor_type()), |
| 62 | Entity::Tag(_) => EntityType::Tag, |
| 63 | Entity::StatusPage(_) => EntityType::StatusPage, |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | trait ParseValue { |
no test coverage detected