Struct merfolk_middleware_authentication::AuthenticationBuilder[][src]

pub struct AuthenticationBuilder<'a, B> { /* fields omitted */ }

Builder for Authentication.

Implementations

impl<'a, B> AuthenticationBuilder<'a, B>[src]

pub fn scopes<VALUE: Into<Vec<(String, String)>>>(self, value: VALUE) -> Self[src]

pub fn auth<VALUE: Into<(String, String)>>(self, value: VALUE) -> Self[src]

pub fn build(self) -> Result<Authentication<'a, B>, AuthenticationBuilderError>[src]

Builds a new Authentication.

Errors

If a required field has not been initialized.

impl<'a, B> AuthenticationBuilder<'a, B>[src]

pub fn authenticator<A>(self, value: A) -> Self where
    A: Fn((String, String), Vec<String>) -> Result<()> + 'a + Send
[src]

pub fn build_boxed(
    self
) -> Result<Box<Authentication<'a, B>>, AuthenticationBuilderError>
[src]

Trait Implementations

impl<'a, B> Default for AuthenticationBuilder<'a, B>[src]

Auto Trait Implementations

impl<'a, B> !RefUnwindSafe for AuthenticationBuilder<'a, B>[src]

impl<'a, B> Send for AuthenticationBuilder<'a, B> where
    B: Send
[src]

impl<'a, B> !Sync for AuthenticationBuilder<'a, B>[src]

impl<'a, B> Unpin for AuthenticationBuilder<'a, B> where
    B: Unpin
[src]

impl<'a, B> !UnwindSafe for AuthenticationBuilder<'a, B>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.