pub trait TokenProvider {
type Token<'a>: Future<Output = Result<AccessToken>> + 'a
where Self: 'a;
// Required method
fn token(&self) -> Self::Token<'_>;
// Provided method
fn quota_project(&self) -> Option<&str> { ... }
}Expand description
A source of access tokens.
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn quota_project(&self) -> Option<&str>
fn quota_project(&self) -> Option<&str>
The project billed for API quota (user credentials only).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".