Trait ApiKey
text_translator
pub trait ApiKey<'a>: Api + Sized { fn set_set(&mut self, key: &'a str); fn get_key(&self) -> Option<&'a str>; }
Extends Api, where the API needs to have an API Key.
Api
fn set_set(&mut self, key: &'a str)
fn get_key(&self) -> Option<&'a str>
impl<'a> ApiKey<'a> for Yandex<'a>