Trait spin_sdk::http::conversions::TryFromBody
source · pub trait TryFromBody {
type Error: IntoResponse;
// Required method
fn try_from_body(body: Vec<u8>) -> Result<Self, Self::Error>
where Self: Sized;
}
Expand description
A trait for converting from a body or failing
Required Associated Types§
sourcetype Error: IntoResponse
type Error: IntoResponse
The error encountered if conversion fails