pub struct Client { /* private fields */ }Expand description
A Cloudflare API client that makes requests asynchronously.
Implementations§
Source§impl Client
impl Client
pub fn new(credentials: Credentials, environment: Environment) -> Result<Client>
Trait Implementations§
Source§impl AsyncApiClient for Client
impl AsyncApiClient for Client
fn request<'life0, 'life1, 'async_trait, ResultType, QueryType, BodyType>(
&'life0 self,
endpoint: &'life1 (dyn Endpoint<ResultType, QueryType, BodyType> + Send + Sync),
) -> Pin<Box<dyn Future<Output = Result<ResultType>> + Send + 'async_trait>>where
ResultType: ApiResultTraits + 'async_trait,
QueryType: Serialize + 'async_trait,
BodyType: Serialize + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
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