Skip to main content

NewsArticle

Type Alias NewsArticle 

Source
pub type NewsArticle = NewsResultItemDto;

Aliased Type§

pub struct NewsArticle {
    pub data: Option<WebScrapeDataDto>,
    pub published_at: String,
    pub snippet: Option<String>,
    pub source: Option<String>,
    pub title: String,
    pub url: String,
}

Fields§

§data: Option<WebScrapeDataDto>

The article read as clean data, or null when scrapeResults is off or the page could not be read.

§published_at: String

When it was published. Exact when the listing gives a time, otherwise worked out from its stated age, such as 2 days ago.

§snippet: Option<String>

A short summary of the article.

§source: Option<String>

The outlet that published it.

§title: String

The headline.

§url: String

The article’s address on the publisher’s own site.