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

Method from

autokuma/src/name.rs:60–68  ·  view source on GitHub ↗
(selector: EntitySelector)

Source from the content-addressed store, hash-verified

58
59impl From<EntitySelector> for Name {
60 fn from(selector: EntitySelector) -> Self {
61 match selector {
62 EntitySelector::Monitor(name, _) => Name::Monitor(name),
63 EntitySelector::Notification(name, _) => Name::Notification(name),
64 EntitySelector::DockerHost(name, _) => Name::DockerHost(name),
65 EntitySelector::Tag(name, _) => Name::Tag(name),
66 EntitySelector::StatusPage(name, _) => Name::StatusPage(name),
67 }
68 }
69}

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected