pub struct ClientOptions<'a> {
pub base_url: &'a str,
pub timeout: Duration,
pub max_response_bytes: usize,
}Expand description
Connection configuration.
Fields§
§base_url: &'a strServer root, optionally with a proxy prefix, without /v1.
timeout: DurationWhole HTTP request timeout, including response-body reading.
max_response_bytes: usizeMaximum response bytes (default 8 MiB), including error bodies.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ClientOptions<'a>
impl<'a> RefUnwindSafe for ClientOptions<'a>
impl<'a> Send for ClientOptions<'a>
impl<'a> Sync for ClientOptions<'a>
impl<'a> Unpin for ClientOptions<'a>
impl<'a> UnsafeUnpin for ClientOptions<'a>
impl<'a> UnwindSafe for ClientOptions<'a>
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