ExtractorConfig

Trait ExtractorConfig 

Source
pub trait ExtractorConfig: Send + Sync {
    // Required method
    fn value() -> &'static str;
}
Expand description

Provides configuration values for token extractors.

Implement this trait to specify custom header names or cookie names Typically used with the define_*_extractor! macros rather than implemented manually.

Required Methods§

Source

fn value() -> &'static str

Returns the header name or cookie name to extract from.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§