Skip to main content

DefaultAuthScheme

Trait DefaultAuthScheme 

Source
pub trait DefaultAuthScheme<T: AuthScheme> {
    // Required method
    fn get_default<'a>() -> T::Input<'a>;
}
Expand description

Allows us to set a placeholder auth scheme

Use when we don’t actually care about authenticating requests. With the SerializingRumaRequestWrapper, the authentication isn’t information we actually care about serializing, so we just put anything to make the ruma trait happy.

Required Methods§

Source

fn get_default<'a>() -> T::Input<'a>

Get a default input to the path builder

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl DefaultAuthScheme<AccessToken> for AccessToken

Source§

fn get_default<'a>() -> <AccessToken as AuthScheme>::Input<'a>

Implementors§