pub struct ResultData {Show 17 fields
pub content: String,
pub content_encoding: String,
pub content_type: String,
pub url: String,
pub status_code: u16,
pub status: String,
pub success: bool,
pub duration: f64,
pub format: String,
pub error: Option<ScrapeErrorDetails>,
pub log_url: String,
pub response_headers: Value,
pub request_headers: BTreeMap<String, String>,
pub screenshots: BTreeMap<String, Value>,
pub extracted_data: Option<Value>,
pub browser_data: Value,
pub iframes: Value,
}Expand description
Body of the result field.
Fields§
§content: StringScraped content (HTML, text, markdown…).
content_encoding: StringContent encoding.
content_type: StringContent type.
url: StringFinal URL.
status_code: u16HTTP status code from the target.
status: StringStatus string (DONE, etc.).
success: boolScrape success marker.
duration: f64Scrape duration (seconds).
format: StringFormat marker (raw, text, clob, blob…).
error: Option<ScrapeErrorDetails>Error envelope for server-side scrape failures.
log_url: StringLog URL for the dashboard.
response_headers: ValueResponse headers.
request_headers: BTreeMap<String, String>Request headers.
screenshots: BTreeMap<String, Value>Screenshots captured during this scrape.
extracted_data: Option<Value>Extracted data (if any).
browser_data: ValueBrowser data (local/session storage, attachments…).
iframes: ValueIframes discovered during a rendered scrape. Each entry has at least
a url field pointing at the embedded document. Stored as
serde_json::Value because the exact shape varies with the engine
version (url, url_discovered_as, navigation_id, …).
Trait Implementations§
Source§impl Clone for ResultData
impl Clone for ResultData
Source§fn clone(&self) -> ResultData
fn clone(&self) -> ResultData
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 ResultData
impl Debug for ResultData
Source§impl Default for ResultData
impl Default for ResultData
Source§fn default() -> ResultData
fn default() -> ResultData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResultData
impl<'de> Deserialize<'de> for ResultData
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 ResultData
impl RefUnwindSafe for ResultData
impl Send for ResultData
impl Sync for ResultData
impl Unpin for ResultData
impl UnsafeUnpin for ResultData
impl UnwindSafe for ResultData
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