Skip to main content

MaybeApiKey

Trait MaybeApiKey 

Source
pub trait MaybeApiKey {
    // Required method
    fn maybe_key(self) -> Option<String>;
}
Expand description

Helper thread to allow setting an API key from various types

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl MaybeApiKey for &str

Source§

impl MaybeApiKey for Option<&String>

Source§

impl MaybeApiKey for Option<&str>

Source§

impl MaybeApiKey for Option<String>

Source§

impl MaybeApiKey for String

Source§

impl<E: Sized> MaybeApiKey for Result<String, E>

Implementors§