#[non_exhaustive]pub struct ArticleData {
pub title: String,
pub content: String,
pub text_content: String,
pub byline: Option<String>,
pub excerpt: Option<String>,
pub lang: Option<String>,
pub url: Option<String>,
}Expand description
Structured article data for JSON output.
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: StringPage title.
content: StringRaw HTML content extracted by Readability.
text_content: StringReadable text content (Markdown).
byline: Option<String>Author or byline, if detected.
excerpt: Option<String>Short excerpt or description.
lang: Option<String>Document language (e.g. “en”).
url: Option<String>Canonical URL.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArticleData
impl RefUnwindSafe for ArticleData
impl Send for ArticleData
impl Sync for ArticleData
impl Unpin for ArticleData
impl UnsafeUnpin for ArticleData
impl UnwindSafe for ArticleData
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