pub trait PayloadExtractor<H, P: Debug + Serialize + for<'de> Deserialize<'de>> {
// Required method
fn try_from_headers(headers: &H, jwt: &Jwt) -> Result<P, PayloadError>;
}
Required Methods§
Sourcefn try_from_headers(headers: &H, jwt: &Jwt) -> Result<P, PayloadError>
fn try_from_headers(headers: &H, jwt: &Jwt) -> Result<P, PayloadError>
Extract payload from request headers
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.