product_os_requestTrait ProductOSClient
Source pub trait ProductOSClient<DReq: Body, DRes: Body> {
// Required methods
fn build(&mut self, requester: &ProductOSRequester);
fn new_request(&self, method: Method, url: String) -> ProductOSRequest<DReq>;
fn request<'life0, 'async_trait>(
&'life0 self,
r: ProductOSRequest<DReq>,
) -> Pin<Box<dyn Future<Output = Result<ProductOSResponse<DRes>, ProductOSRequestError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn request_simple<'life0, 'life1, 'async_trait>(
&'life0 self,
method: Method,
url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ProductOSResponse<DRes>, ProductOSRequestError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn request_raw<'life0, 'async_trait>(
&'life0 self,
r: Request<DReq>,
) -> Pin<Box<dyn Future<Output = Result<ProductOSResponse<DRes>, ProductOSRequestError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn text<'life0, 'async_trait>(
&'life0 self,
r: ProductOSResponse<DRes>,
) -> Pin<Box<dyn Future<Output = Result<String, ProductOSRequestError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn bytes<'life0, 'async_trait>(
&'life0 self,
r: ProductOSResponse<DRes>,
) -> Pin<Box<dyn Future<Output = Result<Bytes, ProductOSRequestError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}