pub trait IntoTokenSource {
// Required method
fn into_token_source(self) -> Box<dyn TokenSource>;
}Expand description
Conversion into a boxed TokenSource, so Client::new
can accept an ApiKey, a StaticToken, a Box<dyn TokenSource>, or
any custom source with one signature.
Required Methods§
fn into_token_source(self) -> Box<dyn TokenSource>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".