pub trait TokenSource: Send + Sync {
// Required method
fn token(&self, integration: &Integration) -> Result<String>;
}Expand description
Where a token comes from. A trait so the clients can be tested with a canned token and the resolution order can change without touching a client.
Required Methods§
fn token(&self, integration: &Integration) -> Result<String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".