pub trait Encoding {
const CONTENT_TYPE: &'static str;
const METHOD: Method;
}Expand description
Defines a particular encoding format, which can be used for serializing or deserializing data.
Required Associated Constants§
Sourceconst CONTENT_TYPE: &'static str
const CONTENT_TYPE: &'static str
The MIME type of the data.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".