Path

Struct Path 

Source
pub struct Path<V>(pub V);
Expand description

Path extractor

Tuple Fields§

§0: V

Implementations§

Source§

impl<T> Path<T>

Source

pub fn into_inner(self) -> T

Returns the inner value

Examples found in repository?
examples/basic.rs (line 91)
88async fn not_working(
89    path: HttpPath<(u8, String)>,
90) -> Result<impl Responder<Body = BoxBody>, HttpServerError> {
91    let (id, name) = path.into_inner();
92
93    Ok(HttpResponse::new(200).body((id.to_string(), name)))
94}

Trait Implementations§

Source§

impl<V: Clone> Clone for Path<V>

Source§

fn clone(&self) -> Path<V>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<V: Debug> Debug for Path<V>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> Deref for Path<T>

Source§

type Target = T

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<T> DerefMut for Path<T>

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl<V: FromStr, const N: usize> FromRequest for Path<[V; N]>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<[V; N]>, <Path<[V; N]> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr> FromRequest for Path<(A,)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A,)>, <Path<(A,)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr> FromRequest for Path<(A, A1)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1)>, <Path<(A, A1)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr> FromRequest for Path<(A, A1, A2)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2)>, <Path<(A, A1, A2)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr> FromRequest for Path<(A, A1, A2, A3)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3)>, <Path<(A, A1, A2, A3)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr> FromRequest for Path<(A, A1, A2, A3, A4)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4)>, <Path<(A, A1, A2, A3, A4)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5)>, <Path<(A, A1, A2, A3, A4, A5)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6)>, <Path<(A, A1, A2, A3, A4, A5, A6)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr, A7: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6, A7)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6, A7)>, <Path<(A, A1, A2, A3, A4, A5, A6, A7)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr, A7: FromStr, A8: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6, A7, A8)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6, A7, A8)>, <Path<(A, A1, A2, A3, A4, A5, A6, A7, A8)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr, A7: FromStr, A8: FromStr, A9: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9)>, <Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr, A7: FromStr, A8: FromStr, A9: FromStr, A10: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)>, <Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr, A7: FromStr, A8: FromStr, A9: FromStr, A10: FromStr, A11: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)>, <Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr, A7: FromStr, A8: FromStr, A9: FromStr, A10: FromStr, A11: FromStr, A12: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)>, <Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr, A7: FromStr, A8: FromStr, A9: FromStr, A10: FromStr, A11: FromStr, A12: FromStr, A13: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)>, <Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr, A7: FromStr, A8: FromStr, A9: FromStr, A10: FromStr, A11: FromStr, A12: FromStr, A13: FromStr, A14: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)>, <Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr, A7: FromStr, A8: FromStr, A9: FromStr, A10: FromStr, A11: FromStr, A12: FromStr, A13: FromStr, A14: FromStr, A15: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)>, <Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr, A7: FromStr, A8: FromStr, A9: FromStr, A10: FromStr, A11: FromStr, A12: FromStr, A13: FromStr, A14: FromStr, A15: FromStr, A16: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16)>, <Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr, A7: FromStr, A8: FromStr, A9: FromStr, A10: FromStr, A11: FromStr, A12: FromStr, A13: FromStr, A14: FromStr, A15: FromStr, A16: FromStr, A17: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17)>, <Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr, A7: FromStr, A8: FromStr, A9: FromStr, A10: FromStr, A11: FromStr, A12: FromStr, A13: FromStr, A14: FromStr, A15: FromStr, A16: FromStr, A17: FromStr, A18: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18)>, <Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr, A7: FromStr, A8: FromStr, A9: FromStr, A10: FromStr, A11: FromStr, A12: FromStr, A13: FromStr, A14: FromStr, A15: FromStr, A16: FromStr, A17: FromStr, A18: FromStr, A19: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19)>, <Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr, A7: FromStr, A8: FromStr, A9: FromStr, A10: FromStr, A11: FromStr, A12: FromStr, A13: FromStr, A14: FromStr, A15: FromStr, A16: FromStr, A17: FromStr, A18: FromStr, A19: FromStr, A20: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20)>, <Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr, A7: FromStr, A8: FromStr, A9: FromStr, A10: FromStr, A11: FromStr, A12: FromStr, A13: FromStr, A14: FromStr, A15: FromStr, A16: FromStr, A17: FromStr, A18: FromStr, A19: FromStr, A20: FromStr, A21: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21)>, <Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr, A7: FromStr, A8: FromStr, A9: FromStr, A10: FromStr, A11: FromStr, A12: FromStr, A13: FromStr, A14: FromStr, A15: FromStr, A16: FromStr, A17: FromStr, A18: FromStr, A19: FromStr, A20: FromStr, A21: FromStr, A22: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22)>, <Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr, A7: FromStr, A8: FromStr, A9: FromStr, A10: FromStr, A11: FromStr, A12: FromStr, A13: FromStr, A14: FromStr, A15: FromStr, A16: FromStr, A17: FromStr, A18: FromStr, A19: FromStr, A20: FromStr, A21: FromStr, A22: FromStr, A23: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23)>, <Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr, A7: FromStr, A8: FromStr, A9: FromStr, A10: FromStr, A11: FromStr, A12: FromStr, A13: FromStr, A14: FromStr, A15: FromStr, A16: FromStr, A17: FromStr, A18: FromStr, A19: FromStr, A20: FromStr, A21: FromStr, A22: FromStr, A23: FromStr, A24: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24)>, <Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr, A7: FromStr, A8: FromStr, A9: FromStr, A10: FromStr, A11: FromStr, A12: FromStr, A13: FromStr, A14: FromStr, A15: FromStr, A16: FromStr, A17: FromStr, A18: FromStr, A19: FromStr, A20: FromStr, A21: FromStr, A22: FromStr, A23: FromStr, A24: FromStr, A25: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25)>, <Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<A: FromStr, A1: FromStr, A2: FromStr, A3: FromStr, A4: FromStr, A5: FromStr, A6: FromStr, A7: FromStr, A8: FromStr, A9: FromStr, A10: FromStr, A11: FromStr, A12: FromStr, A13: FromStr, A14: FromStr, A15: FromStr, A16: FromStr, A17: FromStr, A18: FromStr, A19: FromStr, A20: FromStr, A21: FromStr, A22: FromStr, A23: FromStr, A24: FromStr, A25: FromStr, A26: FromStr> FromRequest for Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26)>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26)>, <Path<(A, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26)> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<V: FromStr> FromRequest for Path<Vec<V>>

Source§

type Error = ExtractionError

The error that can happen when extracting data
Source§

type Future = Ready<Result<Path<Vec<V>>, <Path<Vec<V>> as FromRequest>::Error>>

The future that will be used to extract the data
Source§

fn from_request(req: &HttpRequest, _: &mut HttpPayload) -> Self::Future

Extracts a value of type Self from the request. The request contains the request body at the moment but that might change in the future
Source§

fn extract(req: &HttpRequest) -> Self::Future

Extracts a value of type Self from the request
Source§

impl<V: Ord> Ord for Path<V>

Source§

fn cmp(&self, other: &Path<V>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<V: PartialEq> PartialEq for Path<V>

Source§

fn eq(&self, other: &Path<V>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<V: PartialOrd> PartialOrd for Path<V>

Source§

fn partial_cmp(&self, other: &Path<V>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<V: Eq> Eq for Path<V>

Source§

impl<V> StructuralPartialEq for Path<V>

Auto Trait Implementations§

§

impl<V> Freeze for Path<V>
where V: Freeze,

§

impl<V> RefUnwindSafe for Path<V>
where V: RefUnwindSafe,

§

impl<V> Send for Path<V>
where V: Send,

§

impl<V> Sync for Path<V>
where V: Sync,

§

impl<V> Unpin for Path<V>
where V: Unpin,

§

impl<V> UnwindSafe for Path<V>
where V: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more