pub trait Extract: Sized {
// Required method
fn extract(payload: Vec<u8>) -> FunctionResult<Self>;
}Expand description
Payload extractor for encodings
Required Methods§
Sourcefn extract(payload: Vec<u8>) -> FunctionResult<Self>
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.