Trait porkbun_rs::api::AsyncClient [−][src]
pub trait AsyncClient { type Error: Error + Send + Sync + 'static; fn rest_endpoint(
&self,
endpoint: &str
) -> Result<Url, ApiError<Self::Error>>; #[must_use] fn rest_async<'life0, 'async_trait>(
&'life0 self,
request: RequestBuilder,
body: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, ApiError<Self::Error>>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; fn auth(&self) -> Map<String, Value>; }
Expand description
A trait representing an asynchronous client which can communicate with a Porkbun instance.
Associated Types
Required methods
Get the URL for the endpoint for the client.
This method adds the hostname for the client’s target instance.
Send a REST query asynchronously.