Skip to main content

AuthProvider

Trait AuthProvider 

Source
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§

Source

fn get_token(&self) -> Result<String, AuthError>

Get an access token for Azure Search

Source

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".

Implementors§