pub struct AIRequest {
pub url: String,
pub headers: Vec<(String, String)>,
pub body: String,
}Expand description
Represents an HTTP request to be sent to an AI API
Fields§
§url: StringThe full URL endpoint
headers: Vec<(String, String)>HTTP headers as (key, value) pairs
body: StringJSON body as a string
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AIRequest
impl RefUnwindSafe for AIRequest
impl Send for AIRequest
impl Sync for AIRequest
impl Unpin for AIRequest
impl UnwindSafe for AIRequest
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