Trait simple_serde::SimpleDecoder

source ·
pub trait SimpleDecoder<T> {
    // Required method
    fn decode<F: TryInto<ContentType, Error = impl Into<Error>>>(
        &self,
        content_type: F
    ) -> Result<T>;
}

Required Methods§

source

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> SimpleDecoder<Decoded<T>> for &str

source§

fn decode<F: TryInto<ContentType, Error = impl Into<Error>>>( &self, content_type: F ) -> Result<Decoded<T>>

source§

impl<T> SimpleDecoder<Decoded<T>> for &[u8]

source§

fn decode<F: TryInto<ContentType, Error = impl Into<Error>>>( &self, content_type: F ) -> Result<Decoded<T>>

source§

impl<T> SimpleDecoder<Decoded<T>> for String

source§

fn decode<F: TryInto<ContentType, Error = impl Into<Error>>>( &self, content_type: F ) -> Result<Decoded<T>>

source§

impl<T> SimpleDecoder<Decoded<T>> for Vec<u8>

source§

fn decode<F: TryInto<ContentType, Error = impl Into<Error>>>( &self, content_type: F ) -> Result<Decoded<T>>

Implementors§