[][src]Trait sqs_lambda::event_decoder::PayloadDecoder

pub trait PayloadDecoder<E> {
    pub fn decode(&mut self, bytes: Vec<u8>) -> Result<E, Box<dyn Error>>;
}

Required methods

pub fn decode(&mut self, bytes: Vec<u8>) -> Result<E, Box<dyn Error>>[src]

Loading content...

Implementors

impl<T, F> PayloadDecoder<T> for F where
    F: Fn(Vec<u8>) -> Result<T, Box<dyn Error>>, 
[src]

Loading content...