pub trait TryFromRequest {
type Error;
// Required method
fn try_from_request(req: Request) -> Result<Self, Self::Error>
where Self: Sized;
}
Expand description
A trait for any type that can be constructor from a Request
pub trait TryFromRequest {
type Error;
// Required method
fn try_from_request(req: Request) -> Result<Self, Self::Error>
where Self: Sized;
}
A trait for any type that can be constructor from a Request