#[repr(align(32))]pub struct RestApiConfig {
pub base_url: String,
pub timeout_milliseconds: u64,
pub connection_pool_size: usize,
pub keep_alive_milliseconds: u64,
pub user_agent: String,
pub use_http2: bool,
pub retry: RetryStrategy,
}Expand description
REST API configuration with performance options
Fields§
§base_url: StringBase URL for REST API connections
timeout_milliseconds: u64REST API request timeout in milliseconds
connection_pool_size: usizeConnection pool size for HTTP client
keep_alive_milliseconds: u64Keep-alive timeout in milliseconds
user_agent: StringUser agent String
use_http2: boolWhether to use HTTP/2
retry: RetryStrategyRetry configuration
Trait Implementations§
Source§impl Clone for RestApiConfig
impl Clone for RestApiConfig
Source§fn clone(&self) -> RestApiConfig
fn clone(&self) -> RestApiConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RestApiConfig
impl Debug for RestApiConfig
Auto Trait Implementations§
impl Freeze for RestApiConfig
impl RefUnwindSafe for RestApiConfig
impl Send for RestApiConfig
impl Sync for RestApiConfig
impl Unpin for RestApiConfig
impl UnwindSafe for RestApiConfig
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