pub fn segment(s: impl AsRef<str>) -> MatchSegmentExpand description
Create an endpoint which validates a path segment.
It takes a path segment from the context and check if it is equal to the specified value.
pub fn segment(s: impl AsRef<str>) -> MatchSegmentCreate an endpoint which validates a path segment.
It takes a path segment from the context and check if it is equal to the specified value.