(wrapper: EntityWrapper)
| 210 | |
| 211 | impl From<EntityWrapper> for Entity { |
| 212 | fn from(wrapper: EntityWrapper) -> Self { |
| 213 | match wrapper { |
| 214 | EntityWrapper::DockerHost { |
| 215 | docker_host: DockerHostTagged::DockerHost { docker_host }, |
| 216 | } => Entity::DockerHost(docker_host), |
| 217 | |
| 218 | EntityWrapper::Notification { |
| 219 | notification: NotificationTagged::Notification { notification }, |
| 220 | } => Entity::Notification(notification), |
| 221 | |
| 222 | EntityWrapper::Tag { |
| 223 | tag: TagTagged::Tag { tag }, |
| 224 | } => Entity::Tag(tag), |
| 225 | |
| 226 | EntityWrapper::StatusPage { |
| 227 | status_page: StatusPageTagged::StatusPage { status_page }, |
| 228 | } => Entity::StatusPage(status_page), |
| 229 | |
| 230 | EntityWrapper::Monitor { monitor } => Entity::Monitor(monitor), |
| 231 | } |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | impl From<Entity> for EntityWrapper { |
nothing calls this directly
no test coverage detected