pub struct ClientBuilder<E: Executor> { /* private fields */ }
Implementations§
Source§impl<E: Executor> ClientBuilder<E>
impl<E: Executor> ClientBuilder<E>
pub fn with_base_url<U: Into<Cow<'static, str>>>(self, value: U) -> Self
pub fn set_base_url<U: Into<Cow<'static, str>>>(&mut self, value: U)
pub fn with_executor(self, executor: E) -> Self
pub fn set_executor(self, executor: E)
pub fn with_api_key(self, value: String) -> Self
pub fn set_api_key(self, value: String)
pub fn build(self) -> Result<Client<E>, ClientBuilderError>
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for ClientBuilder<E>where
E: Freeze,
impl<E> RefUnwindSafe for ClientBuilder<E>where
E: RefUnwindSafe,
impl<E> Send for ClientBuilder<E>
impl<E> Sync for ClientBuilder<E>
impl<E> Unpin for ClientBuilder<E>where
E: Unpin,
impl<E> UnwindSafe for ClientBuilder<E>where
E: UnwindSafe,
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