pub struct DocumentAiClient { /* private fields */ }Implementations§
Source§impl DocumentAiClient
impl DocumentAiClient
pub fn new(client: Client) -> Self
pub async fn request( &self, method: Method, path: &str, body_json: Option<&Value>, ) -> Result<DocumentAiResponse, SdkError>
pub async fn upload_file( &self, file_name: &str, file_contents: Vec<u8>, ) -> Result<DocumentAiResponse, SdkError>
pub async fn parse_events( &self, parse_id: &str, ) -> Result<Vec<DocumentAiEvent>, SdkError>
Trait Implementations§
Source§impl Clone for DocumentAiClient
impl Clone for DocumentAiClient
Source§fn clone(&self) -> DocumentAiClient
fn clone(&self) -> DocumentAiClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DocumentAiClient
impl !RefUnwindSafe for DocumentAiClient
impl Send for DocumentAiClient
impl Sync for DocumentAiClient
impl Unpin for DocumentAiClient
impl UnsafeUnpin for DocumentAiClient
impl !UnwindSafe for DocumentAiClient
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