pub trait ExtractKey {
// Required method
fn extract_key(&self) -> &str;
}Expand description
Extracts the route key from a request.
The key is compared against the string literals passed to router!.
Required Methods§
Sourcefn extract_key(&self) -> &str
fn extract_key(&self) -> &str
Returns the string key used for route matching.