pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new(api_key: impl Into<String>) -> Self
pub fn builder(api_key: impl Into<String>) -> ClientBuilder
pub fn with_base_url( api_key: impl Into<String>, base_url: impl Into<String>, ) -> Self
pub async fn create_response( &self, request: CreateResponseBody, ) -> Result<ResponseResource, ClientError>
pub async fn create_response_raw( &self, request: CreateResponseBody, ) -> Result<String, ClientError>
Trait Implementations§
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