pub trait TokenProvider: Send + Sync {
// Required method
fn personal_access_token(&self) -> SecretString;
}Expand description
Trait for providing access tokens; enables testing without touching the concrete configuration layer.
Required Methods§
Sourcefn personal_access_token(&self) -> SecretString
fn personal_access_token(&self) -> SecretString
Obtain a fresh Personal Access Token.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".