Trait Extract

Source
pub trait Extract: Sized {
    // Required method
    fn extract(payload: Vec<u8>) -> FunctionResult<Self>;
}
Expand description

Payload extractor for encodings

Required Methods§

Source

fn extract(payload: Vec<u8>) -> FunctionResult<Self>

Convert from a payload to a value

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.

Implementations on Foreign Types§

Source§

impl Extract for Vec<u8>

Source§

fn extract(payload: Vec<u8>) -> FunctionResult<Self>

Implementors§