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].
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.