pub trait ApiKeyGetter: Send + Sync {
// Required method
fn get(&self, ctx: ApiKeyEndpoint<'_>) -> AuthResult<Option<String>>;
}Expand description
Synchronous key extraction used by the session hook matcher and handler.
Required Methods§
fn get(&self, ctx: ApiKeyEndpoint<'_>) -> AuthResult<Option<String>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".