pub struct SquareHttpClientConfig {
pub timeout: u32,
pub user_agent: String,
pub default_headers: Headers,
pub retry_configuration: RetryConfig,
}
Expand description
Configuration struct for HTTP client settings
Fields§
§timeout: u32
Timeout for HTTP connections
user_agent: String
User Agent to use for requests
default_headers: Headers
Headers to send with each request
retry_configuration: RetryConfig
Retry mechanism configuration
Implementations§
Source§impl SquareHttpClientConfig
Configuration for HTTP client settings
impl SquareHttpClientConfig
Configuration for HTTP client settings
Sourcepub fn builder() -> SquareHttpClientConfigBuilder
pub fn builder() -> SquareHttpClientConfigBuilder
Creates a new builder for HTTP client settings
Trait Implementations§
Source§impl Clone for SquareHttpClientConfig
impl Clone for SquareHttpClientConfig
Source§fn clone(&self) -> SquareHttpClientConfig
fn clone(&self) -> SquareHttpClientConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SquareHttpClientConfig
impl Debug for SquareHttpClientConfig
Auto Trait Implementations§
impl Freeze for SquareHttpClientConfig
impl RefUnwindSafe for SquareHttpClientConfig
impl Send for SquareHttpClientConfig
impl Sync for SquareHttpClientConfig
impl Unpin for SquareHttpClientConfig
impl UnwindSafe for SquareHttpClientConfig
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