pub struct MistralClient { /* private fields */ }Implementations§
Source§impl MistralClient
impl MistralClient
pub fn new(api_key: &str, base_url: &str) -> Self
pub fn file_client(&self) -> FileClient<'_>
pub fn chat_client(&self, model: &str, temperature: f32) -> ChatClient<'_>
pub fn ocr_client(&self, model: &str) -> OcrClient<'_>
Auto Trait Implementations§
impl Freeze for MistralClient
impl !RefUnwindSafe for MistralClient
impl Send for MistralClient
impl Sync for MistralClient
impl Unpin for MistralClient
impl UnsafeUnpin for MistralClient
impl !UnwindSafe for MistralClient
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