pub struct APIClient { /* private fields */ }
Implementations§
Source§impl APIClient
impl APIClient
pub fn new() -> Self
pub async fn send_request<T, U>( &self, url: String, headers: Vec<(HeaderName, String)>, request: &T, ) -> Result<U, LlmApiError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for APIClient
impl !RefUnwindSafe for APIClient
impl Send for APIClient
impl Sync for APIClient
impl Unpin for APIClient
impl !UnwindSafe for APIClient
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