pub struct HtmlDocument {
pub raw: String,
pub title: Option<String>,
pub headings: Vec<HtmlHeading>,
pub links: Vec<HtmlLink>,
pub forms: Vec<HtmlForm>,
pub nodes: Vec<HtmlNode>,
pub metadata: HtmlMetadata,
pub body_text: String,
}Expand description
Parsed HTML document.
Fields§
§raw: StringOriginal input.
title: Option<String>Best extracted title.
headings: Vec<HtmlHeading>Extracted headings in document order.
links: Vec<HtmlLink>Extracted links from the main content region.
forms: Vec<HtmlForm>Forms extracted from the main content region.
nodes: Vec<HtmlNode>Semantic nodes extracted from the main content region.
metadata: HtmlMetadataExtracted document metadata.
body_text: StringText content from extracted user-visible nodes.
Trait Implementations§
Source§impl Clone for HtmlDocument
impl Clone for HtmlDocument
Source§fn clone(&self) -> HtmlDocument
fn clone(&self) -> HtmlDocument
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HtmlDocument
impl Debug for HtmlDocument
Source§impl PartialEq for HtmlDocument
impl PartialEq for HtmlDocument
Source§fn eq(&self, other: &HtmlDocument) -> bool
fn eq(&self, other: &HtmlDocument) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HtmlDocument
impl StructuralPartialEq for HtmlDocument
Auto Trait Implementations§
impl Freeze for HtmlDocument
impl RefUnwindSafe for HtmlDocument
impl Send for HtmlDocument
impl Sync for HtmlDocument
impl Unpin for HtmlDocument
impl UnsafeUnpin for HtmlDocument
impl UnwindSafe for HtmlDocument
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