(input: String)
| 8 | |
| 9 | impl Guest for VariantsWorld { |
| 10 | fn classify(input: String) -> Entity { |
| 11 | match input.as_str() { |
| 12 | "email" => Entity::Email, |
| 13 | "phone" => Entity::PhoneNumber, |
| 14 | "ip" => Entity::IpAddress, |
| 15 | "cc" => Entity::CreditCardNumber, |
| 16 | other => Entity::Custom(other.to_string()), |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | fn tag_all(inputs: Vec<String>) -> Vec<Detected> { |
| 21 | inputs |
nothing calls this directly
no outgoing calls
no test coverage detected