Trait saphir::body::FromBytes

source ·
pub trait FromBytes {
    type Out;

    // Required method
    fn from_bytes(bytes: Bytes) -> Result<(Self::Out, Bytes), SaphirError>
       where Self: Sized;
}

Required Associated Types§

Required Methods§

source

fn from_bytes(bytes: Bytes) -> Result<(Self::Out, Bytes), SaphirError>where Self: Sized,

Implementations on Foreign Types§

source§

impl FromBytes for String

§

type Out = String

source§

fn from_bytes(bytes: Bytes) -> Result<(Self, Bytes), SaphirError>where Self: Sized,

source§

impl FromBytes for Vec<u8>

§

type Out = Vec<u8, Global>

source§

fn from_bytes(bytes: Bytes) -> Result<(Self, Bytes), SaphirError>where Self: Sized,

Implementors§

source§

impl FromBytes for Bytes

§

type Out = Bytes

source§

impl<T> FromBytes for Form<T>where T: for<'a> Deserialize<'a>,

Available on crate feature form only.
§

type Out = T

source§

impl<T> FromBytes for Json<T>where T: for<'a> Deserialize<'a>,

Available on crate feature json only.
§

type Out = T