pub struct ClientBuilder { /* private fields */ }
Expand description
ClientBuilder
can be used to create a Client
with a custom API endpoint and/or Reqwest Client
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
pub fn new() -> ClientBuilder
pub fn build(self, api_key: &str) -> Result<Client>
pub fn api_base(self, value: &str) -> ClientBuilder
Sourcepub fn reqwest_client_builder(self, value: ClientBuilder) -> ClientBuilder
pub fn reqwest_client_builder(self, value: ClientBuilder) -> ClientBuilder
Setter for the reqwest_client_builder struct member
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl !RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl !UnwindSafe for ClientBuilder
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