pub struct DocumentResponse {
pub content: String,
pub format: String,
pub meta: Option<HashMap<String, Value>>,
pub cost_ticks: i64,
pub request_id: String,
}Expand description
Response from document extraction.
Fields§
§content: StringExtracted text content.
format: StringFormat of the extracted content (e.g. “markdown”).
meta: Option<HashMap<String, Value>>Provider-specific metadata about the document.
cost_ticks: i64Total cost in ticks.
request_id: StringUnique request identifier.
Trait Implementations§
Source§impl Clone for DocumentResponse
impl Clone for DocumentResponse
Source§fn clone(&self) -> DocumentResponse
fn clone(&self) -> DocumentResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 DocumentResponse
impl Debug for DocumentResponse
Source§impl<'de> Deserialize<'de> for DocumentResponse
impl<'de> Deserialize<'de> for DocumentResponse
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 DocumentResponse
impl RefUnwindSafe for DocumentResponse
impl Send for DocumentResponse
impl Sync for DocumentResponse
impl Unpin for DocumentResponse
impl UnsafeUnpin for DocumentResponse
impl UnwindSafe for DocumentResponse
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