pub trait Extension {
    // Provided methods
    fn authorization(&mut self) -> Option<&mut dyn AuthorizationExtension> { ... }
    fn access_token(&mut self) -> Option<&mut dyn AccessTokenExtension> { ... }
    fn client_credentials(
        &mut self
    ) -> Option<&mut dyn ClientCredentialsExtension> { ... }
}
Expand description

Intermediate trait to flow specific extensions.

The existence of this 1) promotes writing of extensions so that they can be reused independent of endpoint and request types; 2) makes it possible to provide some of these in this library.

Note that all methods will by default return None so that adding to other flows is possible without affecting existing implementations.

Provided Methods§

source

fn authorization(&mut self) -> Option<&mut dyn AuthorizationExtension>

The handler for authorization code extensions.

source

fn access_token(&mut self) -> Option<&mut dyn AccessTokenExtension>

The handler for access token extensions.

source

fn client_credentials(&mut self) -> Option<&mut dyn ClientCredentialsExtension>

The handler for client credentials extensions.

Implementations on Foreign Types§

source§

impl Extension for ()

Implementors§