pub struct ClientBuilder { /* private fields */ }Implementations§
Source§impl ClientBuilder
impl ClientBuilder
pub fn base_url(self, base_url: impl Into<String>) -> Self
pub fn auth(self, auth: Auth) -> Self
pub fn timeout(self, timeout: Duration) -> Self
Sourcepub fn reqwest_client(self, http: Client) -> Self
pub fn reqwest_client(self, http: Client) -> Self
Supply a pre-configured reqwest::Client (custom TLS, proxy, timeouts).
Sourcepub fn skip_preflight(self) -> Self
pub fn skip_preflight(self) -> Self
Opt out of the lazy preflight checks.
pub fn build(self) -> Result<MatomoClient>
Trait Implementations§
Source§impl Default for ClientBuilder
impl Default for ClientBuilder
Source§fn default() -> ClientBuilder
fn default() -> ClientBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ClientBuilder
impl !UnwindSafe for ClientBuilder
impl Freeze for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnsafeUnpin 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