pub trait StaticName:
Send
+ Sync
+ 'static {
const NAME: &'static str;
}Expand description
A compile-time name for an extractor that needs one — a header, a form field.
Rust has no stable const N: &'static str generic parameter, so the name
travels as a marker type instead of as a literal. static_name! writes
the marker for you.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".