pub struct Auth<T: Serialize + DeserializeOwned + FromBase64, P: AuthParam<T>>(pub T, pub PhantomData<P>);Tuple Fields§
§0: T§1: PhantomData<P>Trait Implementations§
Auto Trait Implementations§
impl<T, P> Freeze for Auth<T, P>where
T: Freeze,
impl<T, P> RefUnwindSafe for Auth<T, P>where
T: RefUnwindSafe,
P: RefUnwindSafe,
impl<T, P> Send for Auth<T, P>
impl<T, P> Sync for Auth<T, P>
impl<T, P> Unpin for Auth<T, P>
impl<T, P> UnwindSafe for Auth<T, P>where
T: UnwindSafe,
P: 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<S, B, T> FromRequest<S, B, ViaParts> for T
impl<S, B, T> FromRequest<S, B, 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.