pub struct ParsedPage {Show 26 fields
pub url: String,
pub meta: MetaTags,
pub headings: Vec<Heading>,
pub links: Vec<ExtractedLink>,
pub images: Vec<ExtractedImage>,
pub forms: Vec<ExtractedForm>,
pub scripts: Vec<ScriptInfo>,
pub styles: Vec<StyleInfo>,
pub structured_data: Vec<StructuredData>,
pub word_count: usize,
pub landmarks: Vec<String>,
pub has_skip_link: bool,
pub has_main_landmark: bool,
pub has_nav_landmark: bool,
pub has_positive_tabindex: bool,
pub tabindex_negative_count: usize,
pub aria_role_count: usize,
pub aria_label_count: usize,
pub has_lang_attribute: bool,
pub html_lang: Option<String>,
pub has_aria_hidden: bool,
pub tables_with_headers: usize,
pub tables_total: usize,
pub tables_with_captions: usize,
pub og_image_width: Option<u32>,
pub og_image_height: Option<u32>,
}Expand description
Complete parsed representation of a page.
Contains all SEO-relevant data extracted from raw HTML by HtmlParser,
including meta tags, headings, links, images, forms, scripts, styles,
structured data, accessibility landmarks, and social media metadata.
This is the primary input to the analysis engine.
Fields§
§url: StringThe page URL.
meta: MetaTagsExtracted meta tags.
headings: Vec<Heading>Headings (H1-H6) in document order.
links: Vec<ExtractedLink>All links on the page.
images: Vec<ExtractedImage>All images on the page.
forms: Vec<ExtractedForm>Forms detected on the page.
scripts: Vec<ScriptInfo>Script tags on the page.
styles: Vec<StyleInfo>Stylesheets (external and inline).
structured_data: Vec<StructuredData>JSON-LD structured data blocks.
word_count: usizeWord count of visible text content.
landmarks: Vec<String>Landmark roles found on the page (e.g. “banner”, “main”, “navigation”).
has_skip_link: boolWhether the page has a skip-to-content link.
has_main_landmark: boolWhether the page has a <main> element or role=“main”.
Whether the page has a <nav> element or role=“navigation”.
has_positive_tabindex: boolWhether any element has tabindex > 0 (positive tabindex).
tabindex_negative_count: usizeNumber of elements with tabindex=-1 (removed from tab order).
aria_role_count: usizeNumber of ARIA roles used on the page.
aria_label_count: usizeNumber of elements with aria-label or aria-labelledby.
has_lang_attribute: boolWhether the html element has a lang attribute.
html_lang: Option<String>The html lang attribute value.
Whether any element uses aria-hidden=“true”.
tables_with_headers: usizeTable accessibility summary.
tables_total: usize§tables_with_captions: usize§og_image_width: Option<u32>OG image width (from og:image:width meta tag).
og_image_height: Option<u32>OG image height (from og:image:height meta tag).
Trait Implementations§
Source§impl Clone for ParsedPage
impl Clone for ParsedPage
Source§fn clone(&self) -> ParsedPage
fn clone(&self) -> ParsedPage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ParsedPage
impl Debug for ParsedPage
Source§impl<'de> Deserialize<'de> for ParsedPage
impl<'de> Deserialize<'de> for ParsedPage
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>,
Auto Trait Implementations§
impl Freeze for ParsedPage
impl RefUnwindSafe for ParsedPage
impl Send for ParsedPage
impl Sync for ParsedPage
impl Unpin for ParsedPage
impl UnsafeUnpin for ParsedPage
impl UnwindSafe for ParsedPage
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more