Skip to main content

segment

Function segment 

Source
pub fn segment(s: impl AsRef<str>) -> MatchSegment
Expand 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.