Trait walker_common::fetcher::Data

source ·
pub trait Data: Sized {
    // Required method
    fn from_response(
        response: Response,
    ) -> impl Future<Output = Result<Self, Error>>;
}
Expand description

Data which can be extracted from a Response.

Required Methods§

source

fn from_response( response: Response, ) -> impl Future<Output = Result<Self, Error>>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Data for String

String data

source§

async fn from_response(response: Response) -> Result<Self, Error>

source§

impl Data for Bytes

BLOB data

source§

async fn from_response(response: Response) -> Result<Self, Error>

source§

impl<D: Data> Data for Option<D>

source§

async fn from_response(response: Response) -> Result<Self, Error>

Implementors§

source§

impl Data for Text

source§

impl<D> Data for Json<D>