Skip to main content

ApiKey

Trait ApiKey 

Source
pub trait ApiKey: Sized {
    // Provided method
    fn into_header(self) -> Option<Result<(HeaderName, HeaderValue), Error>> { ... }
}
Expand description

A trait for API keys. This determines whether the key is inserted into a Client’s default headers (in the Some case) or handled by a given provider extension (in the None case)

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§