pub struct CrawlPage {
pub url: String,
pub status_code: Option<u16>,
pub title: Option<String>,
pub description: Option<String>,
pub content_type: Option<String>,
pub word_count: Option<u64>,
pub quality_score: Option<f32>,
pub error: Option<String>,
}Expand description
Summary for one page visited by bounded crawl discovery.
Fields§
§url: StringFinal page URL.
status_code: Option<u16>HTTP status code, when the page was fetched.
title: Option<String>Page title from metadata, when available.
description: Option<String>Page description from metadata, when available.
content_type: Option<String>Content-Type header, when available.
word_count: Option<u64>Word count of returned content, when available.
quality_score: Option<f32>Agent quality score, when available.
error: Option<String>Error for this crawl page, when fetching failed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CrawlPage
impl<'de> Deserialize<'de> for CrawlPage
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
Source§impl JsonSchema for CrawlPage
impl JsonSchema for CrawlPage
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for CrawlPage
impl RefUnwindSafe for CrawlPage
impl Send for CrawlPage
impl Sync for CrawlPage
impl Unpin for CrawlPage
impl UnsafeUnpin for CrawlPage
impl UnwindSafe for CrawlPage
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