Skip to main content

AuthStrategyExt

Trait AuthStrategyExt 

Source
pub trait AuthStrategyExt {
    // Required method
    fn bearer(token: impl Into<String>) -> AuthStrategy;
}
Expand description

Extension trait for building auth strategies fluently.

Required Methods§

Source

fn bearer(token: impl Into<String>) -> AuthStrategy

Create a bearer auth strategy.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§