MCPcopy Create free account
hub / github.com/BigBoot/AutoKuma / from

Method from

autokuma/src/entity.rs:212–232  ·  view source on GitHub ↗
(wrapper: EntityWrapper)

Source from the content-addressed store, hash-verified

210
211impl 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
235impl From<Entity> for EntityWrapper {

Callers

nothing calls this directly

Calls 5

DockerHostClass · 0.85
NotificationClass · 0.85
TagClass · 0.85
StatusPageClass · 0.85
MonitorEnum · 0.85

Tested by

no test coverage detected