pub struct RequireRole(pub String);Tuple Fields§
§0: StringTrait Implementations§
Source§impl<S> FromRequestParts<S> for RequireRole
impl<S> FromRequestParts<S> for RequireRole
Auto Trait Implementations§
impl Freeze for RequireRole
impl RefUnwindSafe for RequireRole
impl Send for RequireRole
impl Sync for RequireRole
impl Unpin for RequireRole
impl UnsafeUnpin for RequireRole
impl UnwindSafe for RequireRole
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.