pub struct ConvertResult {
pub markdown: String,
pub document_id: Option<String>,
pub filename: Option<String>,
}Expand description
Result from the /convert endpoint.
document_id is populated when akribes-server has S3 persistence
configured (the default in prod). Callers that want to re-use the
uploaded file as a document-typed input on a subsequent /run
call should pass this id instead of the converted markdown.
Fields§
§markdown: String§document_id: Option<String>§filename: Option<String>Trait Implementations§
Source§impl Clone for ConvertResult
impl Clone for ConvertResult
Source§fn clone(&self) -> ConvertResult
fn clone(&self) -> ConvertResult
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 moreSource§impl Debug for ConvertResult
impl Debug for ConvertResult
Source§impl<'de> Deserialize<'de> for ConvertResult
impl<'de> Deserialize<'de> for ConvertResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConvertResult
impl RefUnwindSafe for ConvertResult
impl Send for ConvertResult
impl Sync for ConvertResult
impl Unpin for ConvertResult
impl UnsafeUnpin for ConvertResult
impl UnwindSafe for ConvertResult
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