pub struct BpiClientBuilder { /* private fields */ }Expand description
Configures a BpiClient before construction.
Implementations§
Source§impl BpiClientBuilder
impl BpiClientBuilder
Sourcepub fn connect_timeout(self, timeout: Duration) -> Self
pub fn connect_timeout(self, timeout: Duration) -> Self
Sets the TCP connect timeout.
Sourcepub fn user_agent(self, user_agent: impl Into<String>) -> Self
pub fn user_agent(self, user_agent: impl Into<String>) -> Self
Sets the default user-agent applied by BpiClient::get and BpiClient::post.
Sourcepub fn referer(self, referer: impl Into<String>) -> Self
pub fn referer(self, referer: impl Into<String>) -> Self
Sets the default referer header applied by BpiClient::get and BpiClient::post.
Sourcepub fn origin(self, origin: impl Into<String>) -> Self
pub fn origin(self, origin: impl Into<String>) -> Self
Sets the default origin header applied by BpiClient::get and BpiClient::post.
Sourcepub fn no_proxy(self, enabled: bool) -> Self
pub fn no_proxy(self, enabled: bool) -> Self
Controls whether reqwest should bypass system proxies.
Sourcepub fn account(self, account: Account) -> Self
pub fn account(self, account: Account) -> Self
Seeds the client session from structured account values.
Sourcepub fn reqwest_client(self, client: Client) -> Self
pub fn reqwest_client(self, client: Client) -> Self
Uses an externally configured reqwest client.
Trait Implementations§
Source§impl Debug for BpiClientBuilder
impl Debug for BpiClientBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for BpiClientBuilder
impl !UnwindSafe for BpiClientBuilder
impl Freeze for BpiClientBuilder
impl Send for BpiClientBuilder
impl Sync for BpiClientBuilder
impl Unpin for BpiClientBuilder
impl UnsafeUnpin for BpiClientBuilder
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