[][src]Struct canadian_news_scraper::News

pub struct News {
    pub news_enum: NewsEnum,
    pub news_site: String,
    pub article_link: String,
    pub img_link: String,
    pub title: String,
    pub desc: String,
    pub author: String,
    pub metadata: String,
    pub article_text: String,
    pub article_date: String,
    pub scrape_date: DateTime<Utc>,
}

News

Main data structure of the program that pulled information is placed.

Fields

news_enum: NewsEnumnews_site: Stringarticle_link: Stringimg_link: Stringtitle: Stringdesc: Stringauthor: Stringmetadata: Stringarticle_text: Stringarticle_date: Stringscrape_date: DateTime<Utc>

Implementations

impl News[src]

pub fn new(
    news_enum: NewsEnum,
    article_link: String,
    img_link: String,
    title: String,
    desc: String,
    article_text: String,
    author: String,
    metadata: String
) -> News
[src]

pub fn add_scrape_article(
    &mut self,
    missing_data: (String, String, String, String)
)
[src]

Trait Implementations

impl Clone for News[src]

impl Debug for News[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.