(value: &str)
| 642 | |
| 643 | impl QueryDirective { |
| 644 | fn parse(value: &str) -> Option<Self> { |
| 645 | if value.eq_ignore_ascii_case("load") { |
| 646 | Some(Self::Load) |
| 647 | } else if value.eq_ignore_ascii_case("init") { |
| 648 | Some(Self::Init) |
| 649 | } else if value.eq_ignore_ascii_case("run") { |
| 650 | Some(Self::Run) |
| 651 | } else if value.eq_ignore_ascii_case("cleanup") { |
| 652 | Some(Self::Cleanup) |
| 653 | } else { |
| 654 | None |
| 655 | } |
| 656 | } |
| 657 | |
| 658 | fn as_str(self) -> &'static str { |
| 659 | match self { |
no outgoing calls
no test coverage detected