pub struct ClientAuthorization<F = ()> {
pub credentials: Credentials,
pub form: Option<F>,
}
Fields§
§credentials: Credentials
§form: Option<F>
Implementations§
Trait Implementations§
source§impl<F: Debug> Debug for ClientAuthorization<F>
impl<F: Debug> Debug for ClientAuthorization<F>
source§impl<S, F> FromRequest<S> for ClientAuthorization<F>
impl<S, F> FromRequest<S> for ClientAuthorization<F>
§type Rejection = ClientAuthorizationError
type Rejection = ClientAuthorizationError
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
source§impl<F: PartialEq> PartialEq for ClientAuthorization<F>
impl<F: PartialEq> PartialEq for ClientAuthorization<F>
source§fn eq(&self, other: &ClientAuthorization<F>) -> bool
fn eq(&self, other: &ClientAuthorization<F>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<F: Eq> Eq for ClientAuthorization<F>
impl<F> StructuralPartialEq for ClientAuthorization<F>
Auto Trait Implementations§
impl<F> Freeze for ClientAuthorization<F>where
F: Freeze,
impl<F> RefUnwindSafe for ClientAuthorization<F>where
F: RefUnwindSafe,
impl<F> Send for ClientAuthorization<F>where
F: Send,
impl<F> Sync for ClientAuthorization<F>where
F: Sync,
impl<F> Unpin for ClientAuthorization<F>where
F: Unpin,
impl<F> UnwindSafe for ClientAuthorization<F>where
F: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more