pub struct Path<T>(pub T);Tuple Fields§
§0: TTrait Implementations§
Source§impl<T> FromRequestParts for Path<T>where
T: DeserializeOwned + Send,
impl<T> FromRequestParts for Path<T>where
T: DeserializeOwned + Send,
Source§type Rejection = PathRejection
type Rejection = PathRejection
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§async fn from_request_parts(
parts: &mut RequestParts,
) -> Result<Self, Self::Rejection>
async fn from_request_parts( parts: &mut RequestParts, ) -> Result<Self, Self::Rejection>
Perform the extraction.
Auto Trait Implementations§
impl<T> Freeze for Path<T>where
T: Freeze,
impl<T> RefUnwindSafe for Path<T>where
T: RefUnwindSafe,
impl<T> Send for Path<T>where
T: Send,
impl<T> Sync for Path<T>where
T: Sync,
impl<T> Unpin for Path<T>where
T: Unpin,
impl<T> UnsafeUnpin for Path<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Path<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<B, T> FromRequest<B, ViaParts> for Twhere
B: Send,
T: FromRequestParts,
impl<B, T> FromRequest<B, ViaParts> for Twhere
B: Send,
T: FromRequestParts,
Source§type Rejection = <T as FromRequestParts>::Rejection
type Rejection = <T as FromRequestParts>::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.
Source§fn from_request(
req: Request<B>,
) -> impl Future<Output = Result<T, <T as FromRequest<B, ViaParts>>::Rejection>> + Send
fn from_request( req: Request<B>, ) -> impl Future<Output = Result<T, <T as FromRequest<B, ViaParts>>::Rejection>> + Send
Perform the extraction.