Skip to main content

ParsedPage

Struct ParsedPage 

Source
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: String

The page URL.

§meta: MetaTags

Extracted 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: usize

Word count of visible text content.

§landmarks: Vec<String>

Landmark roles found on the page (e.g. “banner”, “main”, “navigation”).

§has_skip_link: bool

Whether the page has a skip-to-content link.

§has_main_landmark: bool

Whether the page has a <main> element or role=“main”.

§has_nav_landmark: bool

Whether the page has a <nav> element or role=“navigation”.

§has_positive_tabindex: bool

Whether any element has tabindex > 0 (positive tabindex).

§tabindex_negative_count: usize

Number of elements with tabindex=-1 (removed from tab order).

§aria_role_count: usize

Number of ARIA roles used on the page.

§aria_label_count: usize

Number of elements with aria-label or aria-labelledby.

§has_lang_attribute: bool

Whether the html element has a lang attribute.

§html_lang: Option<String>

The html lang attribute value.

§has_aria_hidden: bool

Whether any element uses aria-hidden=“true”.

§tables_with_headers: usize

Table 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

Source§

fn clone(&self) -> ParsedPage

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ParsedPage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ParsedPage

Source§

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 Serialize for ParsedPage

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more