pub struct HttpClient {
pub base_url: String,
pub max_retries: u64,
pub deadline: Instant,
pub requests: u64,
pub tools: Vec<Value>,
}Expand description
Client bound to one runtime over HTTP.
Fields§
§base_url: String§max_retries: u64§deadline: Instant§requests: u64§tools: Vec<Value>Tools offered with every request (offered_tools() of the effect mode).
Implementations§
Trait Implementations§
Source§impl CompletionClient for HttpClient
impl CompletionClient for HttpClient
Auto Trait Implementations§
impl Freeze for HttpClient
impl RefUnwindSafe for HttpClient
impl Send for HttpClient
impl Sync for HttpClient
impl Unpin for HttpClient
impl UnsafeUnpin for HttpClient
impl UnwindSafe for HttpClient
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