pub struct Document {Show 22 fields
pub markdown: Option<String>,
pub html: Option<String>,
pub raw_html: Option<String>,
pub json: Option<Value>,
pub summary: Option<String>,
pub metadata: Option<DocumentMetadata>,
pub links: Option<Vec<String>>,
pub images: Option<Vec<String>>,
pub screenshot: Option<String>,
pub audio: Option<String>,
pub video: Option<String>,
pub attributes: Option<Vec<AttributeResult>>,
pub actions: Option<HashMap<String, Value>>,
pub answer: Option<String>,
pub highlights: Option<String>,
pub warning: Option<String>,
pub change_tracking: Option<Value>,
pub branding: Option<Value>,
pub product: Option<Product>,
pub menu: Option<Menu>,
pub pages: Option<Vec<PdfPage>>,
pub blocks: Option<Vec<PdfPageBlocks>>,
}Expand description
Document returned from scrape operations.
Fields§
§markdown: Option<String>Markdown content of the page.
html: Option<String>Filtered HTML content.
raw_html: Option<String>Raw HTML content.
json: Option<Value>Structured JSON extraction result.
summary: Option<String>AI-generated summary.
metadata: Option<DocumentMetadata>Document metadata.
links: Option<Vec<String>>Links found on the page.
images: Option<Vec<String>>Images found on the page.
screenshot: Option<String>Screenshot URL or base64 data.
audio: Option<String>Audio download URL (signed GCS link for MP3).
video: Option<String>Video download URL (signed GCS link).
attributes: Option<Vec<AttributeResult>>Extracted attributes.
actions: Option<HashMap<String, Value>>Action results.
answer: Option<String>Answer generated by the question or deprecated query format.
highlights: Option<String>Highlights generated by the highlights format.
warning: Option<String>Warning message.
change_tracking: Option<Value>Change tracking data.
branding: Option<Value>Branding analysis.
product: Option<Product>Product extraction result.
Menu extraction result.
pages: Option<Vec<PdfPage>>Physical PDF page markdown, present only when parsers[].pages is true.
blocks: Option<Vec<PdfPageBlocks>>Typed PDF layout blocks, present only when parsers[].blocks is true.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Document
impl<'de> Deserialize<'de> for Document
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 Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnsafeUnpin for Document
impl UnwindSafe for Document
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