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

Method entity_type

autokuma/src/entity.rs:57–65  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

55
56impl 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
68trait ParseValue {

Callers 1

update_entityMethod · 0.80

Calls 2

MonitorEnum · 0.85
monitor_typeMethod · 0.80

Tested by

no test coverage detected