pub struct User {
pub id: i64,
pub username: String,
pub email: String,
pub password: String,
}
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
Perform the extraction.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
Perform the extraction.
Instruments this type with the provided
Span, returning an
Instrumented wrapper.
Read more
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.