pub struct ScrapeData {
pub request_id: Option<String>,
pub html: Option<String>,
pub content_type: Option<String>,
pub cleaned: Option<bool>,
pub links: Option<Vec<LinkInfo>>,
pub metadata: Option<PageMetadata>,
pub structured_data: Option<Value>,
pub latency_ms: Option<i64>,
}Expand description
data for a successful Client::scrape call.
Fields§
§request_id: Option<String>Extraction id (distinct from the top-level request_id).
html: Option<String>Raw HTML, or markdown when clean: true / for PDFs.
content_type: Option<String>"html" or "pdf".
cleaned: Option<bool>True when the cleaner pass actually ran.
links: Option<Vec<LinkInfo>>Present only with extract_links: true.
metadata: Option<PageMetadata>{title, description, language}; null for PDFs.
structured_data: Option<Value>Structured data extracted from the page (JSON-LD, microdata, pagination hints), when available. Modeled as free-form JSON.
latency_ms: Option<i64>Total fetch time in milliseconds.
Trait Implementations§
Source§impl Clone for ScrapeData
impl Clone for ScrapeData
Source§fn clone(&self) -> ScrapeData
fn clone(&self) -> ScrapeData
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 ScrapeData
impl Debug for ScrapeData
Source§impl<'de> Deserialize<'de> for ScrapeData
impl<'de> Deserialize<'de> for ScrapeData
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 ScrapeData
impl RefUnwindSafe for ScrapeData
impl Send for ScrapeData
impl Sync for ScrapeData
impl Unpin for ScrapeData
impl UnsafeUnpin for ScrapeData
impl UnwindSafe for ScrapeData
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