14 enum class ComponentType { LITERAL, PLACEHOLDER, SPLAT };
15 std::vector<std::pair<ComponentType, std::string>> components_;
24 Directive(std::string_view from, std::string_view to,
int status);
25 std::uint16_t rewrite(std::string&)
const;
26 std::string error()
const;
27 bool valid()
const {
return error().empty(); }