pub struct RedfishAuth<T>where
T: SatisfiesPrivilege,{
pub user: Option<AuthenticatedUser>,
/* private fields */
}Fields§
§user: Option<AuthenticatedUser>Trait Implementations§
Source§impl<S, T> FromRequestParts<S> for RedfishAuth<T>
impl<S, T> FromRequestParts<S> for RedfishAuth<T>
Source§type Rejection = Response<UnsyncBoxBody<Bytes, Error>>
type Rejection = Response<UnsyncBoxBody<Bytes, Error>>
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 S,
) -> Pin<Box<dyn Future<Output = Result<RedfishAuth<T>, <RedfishAuth<T> as FromRequestParts<S>>::Rejection>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
RedfishAuth<T>: 'async_trait,
fn from_request_parts<'life0, 'life1, 'async_trait>(
parts: &'life0 mut Parts,
state: &'life1 S,
) -> Pin<Box<dyn Future<Output = Result<RedfishAuth<T>, <RedfishAuth<T> as FromRequestParts<S>>::Rejection>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
RedfishAuth<T>: 'async_trait,
Perform the extraction.
Auto Trait Implementations§
impl<T> Freeze for RedfishAuth<T>
impl<T> RefUnwindSafe for RedfishAuth<T>where
T: RefUnwindSafe,
impl<T> Send for RedfishAuth<T>where
T: Send,
impl<T> Sync for RedfishAuth<T>where
T: Sync,
impl<T> Unpin for RedfishAuth<T>where
T: Unpin,
impl<T> UnwindSafe for RedfishAuth<T>where
T: 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.