pub trait FromBody {
    // Required method
    fn from_body(body: Vec<u8>) -> Self;
}
Expand description

A trait from converting from a body

Required Methods§

source

fn from_body(body: Vec<u8>) -> Self

Convert from a body into the type

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromBody for ()

source§

fn from_body(_body: Vec<u8>) -> Self

source§

impl FromBody for Vec<u8>

source§

fn from_body(body: Vec<u8>) -> Self

source§

impl FromBody for Bytes

source§

fn from_body(body: Vec<u8>) -> Self

Implementors§