pub struct SmartScraperData {
pub request_id: Option<String>,
pub result: Option<Value>,
pub latency_ms: Option<i64>,
}Expand description
data for a successful Client::smartscraper
call.
Fields§
§request_id: Option<String>Extraction id (distinct from the top-level request_id).
result: Option<Value>The extracted output — object, array, or string (when plain_text).
latency_ms: Option<i64>Total extraction time in milliseconds.
Implementations§
Source§impl SmartScraperData
impl SmartScraperData
Sourcepub fn result_as<T: DeserializeOwned>(&self) -> Result<T>
pub fn result_as<T: DeserializeOwned>(&self) -> Result<T>
Deserialize SmartScraperData::result into a concrete type T.
Returns Error::Decode if result is null or does not match T.
Trait Implementations§
Source§impl Clone for SmartScraperData
impl Clone for SmartScraperData
Source§fn clone(&self) -> SmartScraperData
fn clone(&self) -> SmartScraperData
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 SmartScraperData
impl Debug for SmartScraperData
Source§impl<'de> Deserialize<'de> for SmartScraperData
impl<'de> Deserialize<'de> for SmartScraperData
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 SmartScraperData
impl RefUnwindSafe for SmartScraperData
impl Send for SmartScraperData
impl Sync for SmartScraperData
impl Unpin for SmartScraperData
impl UnsafeUnpin for SmartScraperData
impl UnwindSafe for SmartScraperData
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