Trait ApiKey

Source
pub trait ApiKey<'a>: Api + Sized {
    // Required methods
    fn set_set(&mut self, key: &'a str);
    fn get_key(&self) -> Option<&'a str>;
}
Expand description

Extends Api, where the API needs to have an API Key.

Required Methods§

Source

fn set_set(&mut self, key: &'a str)

Source

fn get_key(&self) -> Option<&'a str>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a> ApiKey<'a> for Yandex<'a>