spin_sdk::http::conversions

Trait TryIntoRequest

Source
pub trait TryIntoRequest {
    type Error;

    // Required method
    fn try_into_request(self) -> Result<Request, Self::Error>;
}
Expand description

Turn a type into a Request

Required Associated Types§

Source

type Error

The error if the conversion fails

Required Methods§

Source

fn try_into_request(self) -> Result<Request, Self::Error>

Turn self into a Request

Implementations on Foreign Types§

Source§

impl<B: TryIntoBody> TryIntoRequest for Request<B>

Implementors§