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

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,

Implementors§