pub struct ValidCredentials(pub Box<dyn Any + Send + Sync>);Expand description
A set of credentials that has been validated.
Every AuthProvider is free to put Any type in the credentials and is guaranteed
to be passed back only instances it created itself. Use Self::extract_ref to retrieve the
passed in actual type.
Tuple Fields§
§0: Box<dyn Any + Send + Sync>Implementations§
Trait Implementations§
Source§impl Debug for ValidCredentials
impl Debug for ValidCredentials
Source§impl FromRequestParts<Arc<ContainerRegistry>> for ValidCredentials
impl FromRequestParts<Arc<ContainerRegistry>> for ValidCredentials
Source§type Rejection = StatusCode
type Rejection = StatusCode
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§fn from_request_parts<'life0, 'life1, 'async_trait>(
parts: &'life0 mut Parts,
state: &'life1 Arc<ContainerRegistry>,
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Rejection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn from_request_parts<'life0, 'life1, 'async_trait>(
parts: &'life0 mut Parts,
state: &'life1 Arc<ContainerRegistry>,
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Rejection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Perform the extraction.
Auto Trait Implementations§
impl Freeze for ValidCredentials
impl !RefUnwindSafe for ValidCredentials
impl Send for ValidCredentials
impl Sync for ValidCredentials
impl Unpin for ValidCredentials
impl !UnwindSafe for ValidCredentials
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<S, T> FromRequest<S, ViaParts> for T
impl<S, T> FromRequest<S, ViaParts> for T
Source§type Rejection = <T as FromRequestParts<S>>::Rejection
type Rejection = <T as FromRequestParts<S>>::Rejection
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.