product_os_request

Trait 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;
}

Required Methods§

Source

fn build(&mut self, requester: &ProductOSRequester)

Source

fn new_request(&self, method: Method, url: String) -> ProductOSRequest<DReq>

Source

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,

Source

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,

Source

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,

Source

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,

Source

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,

Implementors§