Trait JsonExtractor

Source
pub trait JsonExtractor<T> {
    // Required method
    fn extract(body: &[u8]) -> Result<T, String>;
}
Expand description

JSON body extraction with compile-time validation

Required Methods§

Source

fn extract(body: &[u8]) -> Result<T, String>

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§