Struct actix_web_httpauth::headers::www_authenticate::bearer::BearerBuilder [−][src]
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.
Implementations
impl BearerBuilder
[src]
pub fn scope<T>(self, value: T) -> Self where
T: Into<Cow<'static, str>>,
[src]
T: Into<Cow<'static, str>>,
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]
T: Into<Cow<'static, str>>,
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]
T: Into<Cow<'static, str>>,
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]
T: Into<Cow<'static, str>>,
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]
fn default() -> BearerBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for BearerBuilder
impl Send for BearerBuilder
impl Sync for BearerBuilder
impl Unpin for BearerBuilder
impl UnwindSafe for BearerBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,