pub trait ResponseBody: ResourceType + Serialize { }
Expand description

A type that can be used inside a response body. Implemented for every type that is serializable with serde. If the openapi feature is used, it must also be of type [OpenapiType].

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: ResourceType + Serialize> ResponseBody for T