pub struct OcrClient<'a> { /* private fields */ }Implementations§
Source§impl<'a> OcrClient<'a>
impl<'a> OcrClient<'a>
pub fn new(mistral_client: &'a MistralClient, model: &str) -> Self
pub async fn get_ocr_results( &self, signed_url: &str, ) -> Result<OcrResponse, MistralError>
Auto Trait Implementations§
impl<'a> Freeze for OcrClient<'a>
impl<'a> !RefUnwindSafe for OcrClient<'a>
impl<'a> Send for OcrClient<'a>
impl<'a> Sync for OcrClient<'a>
impl<'a> Unpin for OcrClient<'a>
impl<'a> UnsafeUnpin for OcrClient<'a>
impl<'a> !UnwindSafe for OcrClient<'a>
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