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§
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.