Skip to main content

ExtractKey

Trait ExtractKey 

Source
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§

Source

fn extract_key(&self) -> &str

Returns the string key used for route matching.

Implementors§