Trait seamless::handler::body::IntoBody[][src]

pub trait IntoBody {
    type Target: ApiBody;
    fn into_body(self) -> Self::Target;
}
Expand description

A simple trait that makes it a little more ergonomic in some cases to extract the body out of our various types like FromJson and FromBinary. Useful when we combine types like Capped so that we can avoid multiple layers of unwrapping.

Associated Types

The body type that will be extracted. Whatever we extract should itself implement ApiBody to correspond to the generated type information.

Required methods

Extract the body of the request with this, unwrapping as many layers of nesting as needed.

Implementors