Skip to main content

OnPageResourceMeta

Struct OnPageResourceMeta 

Source
pub struct OnPageResourceMeta {
Show 28 fields pub title: Option<String>, pub charset: Option<i32>, pub follow: Option<bool>, pub generator: Option<String>, pub htags: Option<HashMap<String, Option<Vec<String>>>>, pub description: Option<String>, pub favicon: Option<String>, pub meta_keywords: Option<String>, pub canonical: Option<String>, pub internal_links_count: Option<i64>, pub external_links_count: Option<i64>, pub images_count: Option<i64>, pub images_size: Option<i64>, pub scripts_count: Option<i64>, pub scripts_size: Option<i64>, pub stylesheets_count: Option<i64>, pub stylesheets_size: Option<i64>, pub title_length: Option<i32>, pub description_length: Option<i32>, pub render_blocking_scripts_count: Option<i64>, pub render_blocking_stylesheets_count: Option<i64>, pub cumulative_layout_shift: Option<f64>, pub social_media_tags: Option<Value>, pub content: Option<OnPageResourceMetaContent>, pub deprecated_tags: Option<Vec<String>>, pub duplicate_meta_tags: Option<Vec<String>>, pub spell: Option<OnPageSpell>, pub resource_errors: Option<OnPageResourceErrors>,
}
Expand description

Meta information extracted from a crawled HTML page. See https://docs.dataforseo.com/v3/on_page/pages/.

Fields§

§title: Option<String>

Text of the page title tag.

§charset: Option<i32>

Code page identifier of the page charset (e.g. 65001 for UTF-8).

§follow: Option<bool>

True when the meta robots tag allows following links.

§generator: Option<String>

Value of the generator meta tag.

§htags: Option<HashMap<String, Option<Vec<String>>>>

Heading tags on the page keyed by level (h1, h2, …).

§description: Option<String>

Content of the meta description tag.

§favicon: Option<String>

URL of the page favicon.

§meta_keywords: Option<String>

Content of the meta keywords tag.

§canonical: Option<String>

Canonical URL declared for the page.

§internal_links_count: Option<i64>

Number of internal links on the page.

§external_links_count: Option<i64>

Number of external links on the page.

§images_count: Option<i64>

Number of images on the page.

§images_size: Option<i64>

Total size of images on the page, in bytes.

§scripts_count: Option<i64>

Number of scripts on the page.

§scripts_size: Option<i64>

Total size of scripts on the page, in bytes.

§stylesheets_count: Option<i64>

Number of stylesheets on the page.

§stylesheets_size: Option<i64>

Total size of stylesheets on the page, in bytes.

§title_length: Option<i32>

Length of the title tag, in characters.

§description_length: Option<i32>

Length of the description tag, in characters.

§render_blocking_scripts_count: Option<i64>

Number of scripts that block page rendering.

§render_blocking_stylesheets_count: Option<i64>

Number of stylesheets that block page rendering.

§cumulative_layout_shift: Option<f64>

Cumulative Layout Shift, a Core Web Vitals stability metric.

§social_media_tags: Option<Value>

Open Graph and Twitter card social media tags found on the page.

§content: Option<OnPageResourceMetaContent>

Content readability and consistency metrics for the page.

§deprecated_tags: Option<Vec<String>>

Deprecated HTML tags found on the page.

§duplicate_meta_tags: Option<Vec<String>>

Meta tags that appear more than once on the page.

§spell: Option<OnPageSpell>

Spell-check results for the page content.

§resource_errors: Option<OnPageResourceErrors>

Errors and warnings encountered while parsing page resources.

Trait Implementations§

Source§

impl Clone for OnPageResourceMeta

Source§

fn clone(&self) -> Self

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 OnPageResourceMeta

Source§

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

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

impl<'de> Deserialize<'de> for OnPageResourceMeta

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 OnPageResourceMeta

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<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> 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> 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 = !

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

fn try_from(value: U) -> Result<T, !>

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