pub struct RedfishAuth<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>
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.