pub struct StructuredData {Show 13 fields
pub jsonld: Vec<Value>,
pub products: Vec<JsonLdProduct>,
pub articles: Vec<JsonLdArticle>,
pub breadcrumbs: Vec<BreadcrumbItem>,
pub page_type: Option<(PageType, f32)>,
pub og: OpenGraphData,
pub meta: MetaTags,
pub links: Vec<ExtractedLink>,
pub headings: Vec<(u8, String)>,
pub forms: Vec<ExtractedForm>,
pub has_jsonld: bool,
pub has_opengraph: bool,
pub has_microdata: bool,
}Expand description
All structured data extracted from a single HTML page.
Fields§
§jsonld: Vec<Value>Raw JSON-LD blocks.
products: Vec<JsonLdProduct>Extracted product data from JSON-LD.
articles: Vec<JsonLdArticle>Extracted article data from JSON-LD.
Breadcrumb trail from JSON-LD BreadcrumbList.
page_type: Option<(PageType, f32)>Detected page type and confidence from structured data.
og: OpenGraphDataOpenGraph metadata.
meta: MetaTagsStandard meta tags.
links: Vec<ExtractedLink>Links extracted from <a href> tags.
headings: Vec<(u8, String)>Heading hierarchy.
forms: Vec<ExtractedForm>Forms and their fields.
has_jsonld: boolWhether JSON-LD was found.
has_opengraph: boolWhether OpenGraph tags were found.
has_microdata: boolWhether microdata (itemprop) was found.
Trait Implementations§
Source§impl Clone for StructuredData
impl Clone for StructuredData
Source§fn clone(&self) -> StructuredData
fn clone(&self) -> StructuredData
Returns a duplicate of the value. Read more
1.0.0 · 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 StructuredData
impl Debug for StructuredData
Source§impl Default for StructuredData
impl Default for StructuredData
Source§fn default() -> StructuredData
fn default() -> StructuredData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StructuredData
impl RefUnwindSafe for StructuredData
impl Send for StructuredData
impl Sync for StructuredData
impl Unpin for StructuredData
impl UnsafeUnpin for StructuredData
impl UnwindSafe for StructuredData
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