Struct mercury::Article [] [src]

pub struct Article {
    pub author: Option<String>,
    pub content: String,
    pub date_published: Option<DateTime<Utc>>,
    pub dek: Option<String>,
    pub direction: TextDirection,
    pub excerpt: String,
    pub lead_image_url: Option<String>,
    pub next_page_url: Option<String>,
    pub rendered_pages: u64,
    pub title: String,
    pub total_pages: u64,
    pub url: String,
    pub word_count: u64,
    // some fields omitted
}

Structured data, deserialized from an API response.

Fields

The name of the author.

The main body content.

The publication date.

The dek.

The text direction of content.

A short description.

The url of the lead image.

The url of the next page.

The number of pages included in content.

The title of the article.

The total number of pages.

The original url.

The total number of words.

Trait Implementations

impl Clone for Article
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Article
[src]

[src]

Formats the value using the given formatter.

impl Default for Article
[src]

[src]

Returns the "default value" for a type. Read more

impl Eq for Article
[src]

impl Hash for Article
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for Article
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.