pub struct DriverRequest {
pub url: String,
pub method: String,
pub headers: HashMap<String, String>,
pub body: Value,
pub stream: bool,
}Expand description
Unified HTTP request representation for provider communication.
Fields§
§url: StringTarget URL (base_url + chat_path).
method: StringHTTP method (POST for chat, GET for models).
headers: HashMap<String, String>Request headers.
body: ValueSerialized JSON request body.
stream: boolWhether streaming is requested.
Trait Implementations§
Source§impl Clone for DriverRequest
impl Clone for DriverRequest
Source§fn clone(&self) -> DriverRequest
fn clone(&self) -> DriverRequest
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 moreAuto Trait Implementations§
impl Freeze for DriverRequest
impl RefUnwindSafe for DriverRequest
impl Send for DriverRequest
impl Sync for DriverRequest
impl Unpin for DriverRequest
impl UnsafeUnpin for DriverRequest
impl UnwindSafe for DriverRequest
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