pub trait ApiKeyStore: Send + Sync {
// Required method
fn lookup<'a>(
&'a self,
hash: &'a str,
) -> ApiKeyFuture<'a, Option<ApiKeyRecord>>;
}Expand description
Looks up a stored key by its hex hash. Object-safe so apps can back it with a
DB table (returning None for an unknown hash, NOT an error).
Required Methods§
fn lookup<'a>(&'a self, hash: &'a str) -> ApiKeyFuture<'a, Option<ApiKeyRecord>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".