pub struct Article {
pub title: Option<String>,
pub content: Option<String>,
pub text_content: Option<String>,
pub length: usize,
pub excerpt: Option<String>,
pub byline: Option<String>,
pub dir: Option<String>,
pub site_name: Option<String>,
pub lang: Option<String>,
pub published_time: Option<String>,
pub raw_content: Option<String>,
}Expand description
Represents a successfully parsed article
Fields§
§title: Option<String>Article title
content: Option<String>HTML content of the processed article
text_content: Option<String>Plain text content with all HTML tags removed
length: usizeLength of the article in characters
excerpt: Option<String>Article description or short excerpt from the content
byline: Option<String>Author metadata
dir: Option<String>Content direction (ltr, rtl, auto)
site_name: Option<String>Name of the site
lang: Option<String>Content language
published_time: Option<String>Published time
raw_content: Option<String>Raw HTML before any post-processing
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Article
impl<'de> Deserialize<'de> for Article
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Article
Auto Trait Implementations§
impl Freeze for Article
impl RefUnwindSafe for Article
impl Send for Article
impl Sync for Article
impl Unpin 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