#[non_exhaustive]pub struct Article {}Expand description
The extracted article content and metadata.
All fields are eagerly serialized to strings at construction time (unlike the Go
version which holds a *html.Node and lazily renders). The excerpt fallback
(inner text of the first <p> in the article) is applied at construction.
Port of Article.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.title: String§byline: String§excerpt: StringExcerpt from metadata, or inner text of the first <p> in the article.
site_name: String§image: String§favicon: String§language: String§published_time: String§modified_time: String§content: StringCleaned article HTML (outer_html of the article container node).
text_content: StringPlain text via InnerText algorithm (port of render.InnerText).
length: usizeCharacter count of text_content.
dir: StringDirection: “ltr”, “rtl”, or “”.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Article
impl RefUnwindSafe for Article
impl Send for Article
impl Sync for Article
impl Unpin for Article
impl UnsafeUnpin for Article
impl UnwindSafe for Article
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