pub struct ExtractShield<U: User>(pub Shield<U>);
Tuple Fields§
§0: Shield<U>
Trait Implementations§
Source§impl<S: Send + Sync, U: User + Clone + 'static> FromRequestParts<S> for ExtractShield<U>
impl<S: Send + Sync, U: User + Clone + 'static> FromRequestParts<S> for ExtractShield<U>
Source§type Rejection = (StatusCode, &'static str)
type Rejection = (StatusCode, &'static str)
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
Auto Trait Implementations§
impl<U> Freeze for ExtractShield<U>
impl<U> !RefUnwindSafe for ExtractShield<U>
impl<U> Send for ExtractShield<U>
impl<U> Sync for ExtractShield<U>
impl<U> Unpin for ExtractShield<U>
impl<U> !UnwindSafe for ExtractShield<U>
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.