[][src]Struct actix_web_httpauth::headers::www_authenticate::bearer::BearerBuilder

pub struct BearerBuilder(_);

Builder for the Bearer challenge.

It is up to implementor to fill all required fields, neither this Builder or Bearer does not provide any validation.

Methods

impl BearerBuilder[src]

pub fn scope<T>(self, value: T) -> Self where
    T: Into<Cow<'static, str>>, 
[src]

Provides the scope attribute, as defined in RFC6749, Section 3.3

pub fn realm<T>(self, value: T) -> Self where
    T: Into<Cow<'static, str>>, 
[src]

Provides the realm attribute, as defined in RFC2617

pub fn error(self, value: Error) -> Self[src]

Provides the error attribute, as defined in RFC6750, Section 3.1

pub fn error_description<T>(self, value: T) -> Self where
    T: Into<Cow<'static, str>>, 
[src]

Provides the error_description attribute, as defined in RFC6750, Section 3

pub fn error_uri<T>(self, value: T) -> Self where
    T: Into<Cow<'static, str>>, 
[src]

Provides the error_uri attribute, as defined in RFC6750, Section 3

It is up to implementor to provide properly-formed absolute URI.

pub fn finish(self) -> Bearer[src]

Consumes the builder and returns built Bearer instance.

Trait Implementations

impl Debug for BearerBuilder[src]

impl Default for BearerBuilder[src]

Auto Trait Implementations

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,