SimpleEncoder

Trait SimpleEncoder 

Source
pub trait SimpleEncoder
where Self: Serialize,
{ // Required method fn encode<F: TryInto<ContentType, Error = impl Into<Error>>>( &self, content_type: F, ) -> Result<Encoded>; }

Required Methods§

Source

fn encode<F: TryInto<ContentType, Error = impl Into<Error>>>( &self, content_type: F, ) -> Result<Encoded>

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.

Implementors§

Source§

impl<T> SimpleEncoder for T
where T: Serialize,