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.
content: String
The main body content.
date_published: Option<DateTime<Utc>>
The publication date.
dek: Option<String>
The dek.
direction: TextDirection
The text direction of content
.
excerpt: String
A short description.
lead_image_url: Option<String>
The url of the lead image.
next_page_url: Option<String>
The url of the next page.
rendered_pages: u64
The number of pages included in content
.
title: String
The title of the article.
total_pages: u64
The total number of pages.
url: String
The original url.
word_count: u64
The total number of words.
Trait Implementations
impl Clone for Article
[src]
fn clone(&self) -> Article
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Article
[src]
impl Default for Article
[src]
impl Eq for Article
[src]
impl Hash for Article
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more