Skip to main content

ApiKeyGetter

Trait ApiKeyGetter 

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§