pub struct Product {
pub title: String,
pub content: Option<NodeRef>,
pub by_line: String,
pub dir: String,
pub sitename: String,
pub excerpt: String,
pub published_time: String,
pub score_store: NodeScoreStore,
}Expand description
The output of crate::extract. Contains the extracted article content
as a DOM subtree together with any metadata that was found.
Fields§
§title: StringThe cleaned page / article title.
content: Option<NodeRef>The extracted content subtree, or None if no article content could
be identified. Serialise to HTML with .as_ref().map(|n| n.to_string()).
by_line: StringThe author / byline string, if detected.
dir: StringThe dominant text direction ("ltr" or "rtl"), inferred from
ancestor dir attributes of the top candidate. Empty string if unknown.
sitename: StringThe site name from page metadata.
excerpt: StringA short excerpt / description from page metadata.
published_time: StringAn ISO-8601 publish timestamp from page metadata.
score_store: NodeScoreStoreThe per-node score store produced during scoring. Useful for introspection / debugging; not needed for normal consumers.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Product
impl !RefUnwindSafe for Product
impl !Send for Product
impl !Sync for Product
impl Unpin for Product
impl !UnwindSafe for Product
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