Trait Encodes
pub trait Encodes<T>: ContentType + FormatType {
type Error: Display + Debug;
// Required method
fn encode(output: &T) -> Result<Bytes, Self::Error>;
}Expand description
A trait for types that can be encoded into a bytes for a request body.
Required Associated Typesยง
Required Methodsยง
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.