pub fn parse<'a>(input: &'a str) -> Result<Vec<PathSegment<'a>>, BadPath>Expand description
Parses a path template, like /v1/pets/{petId}/toy.
The grammar for path templating is adapted directly from https://spec.openapis.org/oas/v3.2.0.html#x4-8-2-path-templating.