pub struct ConvertClient { /* private fields */ }Expand description
Sub-client for document conversion via Docling. Obtained via AkribesClient::convert().
Implementations§
Source§impl ConvertClient
impl ConvertClient
Sourcepub async fn convert_file(
&self,
filename: &str,
data: Vec<u8>,
) -> Result<ConvertResult>
pub async fn convert_file( &self, filename: &str, data: Vec<u8>, ) -> Result<ConvertResult>
Convert a document file to Markdown via the server’s Docling integration.
The server supports: PDF, DOCX, DOC, PPTX, XLSX, HTML, PNG, JPG, TIFF.
Sourcepub async fn convert_file_for_project(
&self,
project_id: i64,
filename: &str,
data: Vec<u8>,
) -> Result<ConvertResult>
pub async fn convert_file_for_project( &self, project_id: i64, filename: &str, data: Vec<u8>, ) -> Result<ConvertResult>
Project-scoped convert. Prefer this over convert_file
when uploading for a specific project so the server can enforce scope.
Trait Implementations§
Source§impl Clone for ConvertClient
impl Clone for ConvertClient
Source§fn clone(&self) -> ConvertClient
fn clone(&self) -> ConvertClient
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 ConvertClient
impl !RefUnwindSafe for ConvertClient
impl Send for ConvertClient
impl Sync for ConvertClient
impl Unpin for ConvertClient
impl UnsafeUnpin for ConvertClient
impl !UnwindSafe for ConvertClient
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