pub struct ReqwestApiClient { /* private fields */ }Implementations§
Source§impl ReqwestApiClient
impl ReqwestApiClient
pub fn new(client: Client, credentials: Credentials) -> Self
Trait Implementations§
Source§impl ApiHttpClient for ReqwestApiClient
impl ApiHttpClient for ReqwestApiClient
async fn send_request<ResponseT: Send + DeserializeOwned>( &self, url: String, method: Method, ) -> Result<ResponseT, Report<ApiClientError>>
async fn send_request_with_params<ResponseT: DeserializeOwned + Send, ParamsT: Iterator<Item = (String, String)> + Send>( &self, url: String, params: ParamsT, method: Method, ) -> Result<ResponseT, Report<ApiClientError>>
async fn send_request_body<RequestT: Serialize + Send, ResponseT: DeserializeOwned + Send>( &self, url: String, method: Method, request_body: RequestT, ) -> Result<ResponseT, Report<ApiClientError>>
async fn send_request_body_get_bytes<RequestT: Serialize + Send>( &self, url: String, method: Method, request_body: RequestT, ) -> Result<Bytes, Report<ApiClientError>>
async fn send_request_body_empty_response<RequestT: Serialize + Send>( &self, url: String, method: Method, request_body: RequestT, ) -> Result<(), Report<ApiClientError>>
Auto Trait Implementations§
impl Freeze for ReqwestApiClient
impl !RefUnwindSafe for ReqwestApiClient
impl Send for ReqwestApiClient
impl Sync for ReqwestApiClient
impl Unpin for ReqwestApiClient
impl UnsafeUnpin for ReqwestApiClient
impl !UnwindSafe for ReqwestApiClient
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more