(the Vec<String> would be reference such as &[&str], but this can be addressed later).
Modelling as enums prevents a user from being able to specify a URL part that can only be provided when another URL part is also specified. The parts enums can be generated from the REST API spec.
Relates: #2
The Url parts within a API Url variants should be modelled as an enum. For example, for the search API
(the
Vec<String>
would be reference such as&[&str]
, but this can be addressed later).Modelling as enums prevents a user from being able to specify a URL part that can only be provided when another URL part is also specified. The parts enums can be generated from the REST API spec.