pub trait AuthProvider: Send + Sync {
// Required methods
fn get_token(&self) -> Result<String, AuthError>;
fn method_name(&self) -> &'static str;
}Expand description
Authentication provider trait
Required Methods§
Sourcefn method_name(&self) -> &'static str
fn method_name(&self) -> &'static str
Get the authentication method name
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".