Struct merfolk_middleware_authentication::AuthenticationBuilder [−][src]
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]
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]
A: Fn((String, String), Vec<String>) -> Result<()> + 'a + Send,
pub fn build_boxed(
self
) -> Result<Box<Authentication<'a, B>>, AuthenticationBuilderError>
[src]
self
) -> Result<Box<Authentication<'a, B>>, AuthenticationBuilderError>
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]
B: Send,
impl<'a, B> !Sync for AuthenticationBuilder<'a, B>
[src]
impl<'a, B> Unpin for AuthenticationBuilder<'a, B> where
B: Unpin,
[src]
B: Unpin,
impl<'a, B> !UnwindSafe for AuthenticationBuilder<'a, B>
[src]
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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,