fn path_matches(segments: &[Segment], req_path: &str) -> bool
Returns true if a request path matches this operation’s segment template.