[][src]Struct pt::models::News

pub struct News { /* fields omitted */ }

Implementations

impl News[src]

pub fn new(
    symbols: Vec<String>,
    title: String,
    url: String,
    source: String,
    summary: String,
    timestamp: String
) -> News
[src]

pub fn set_symbols(&mut self, symbols: Vec<String>)[src]

pub fn with_symbols(self, symbols: Vec<String>) -> News[src]

pub fn symbols(&self) -> &Vec<String>[src]

pub fn set_title(&mut self, title: String)[src]

pub fn with_title(self, title: String) -> News[src]

pub fn title(&self) -> &String[src]

pub fn set_url(&mut self, url: String)[src]

pub fn with_url(self, url: String) -> News[src]

pub fn url(&self) -> &String[src]

pub fn set_source(&mut self, source: String)[src]

pub fn with_source(self, source: String) -> News[src]

pub fn source(&self) -> &String[src]

pub fn set_summary(&mut self, summary: String)[src]

pub fn with_summary(self, summary: String) -> News[src]

pub fn summary(&self) -> &String[src]

pub fn set_image(&mut self, image: String)[src]

pub fn with_image(self, image: String) -> News[src]

pub fn image(&self) -> Option<&String>[src]

pub fn reset_image(&mut self)[src]

pub fn set_timestamp(&mut self, timestamp: String)[src]

pub fn with_timestamp(self, timestamp: String) -> News[src]

pub fn timestamp(&self) -> &String[src]

pub fn set_keywords(&mut self, keywords: Vec<Value>)[src]

pub fn with_keywords(self, keywords: Vec<Value>) -> News[src]

pub fn keywords(&self) -> Option<&Vec<Value>>[src]

pub fn reset_keywords(&mut self)[src]

Trait Implementations

impl Clone for News[src]

impl Debug for News[src]

impl<'de> Deserialize<'de> for News[src]

impl Serialize for News[src]

Auto Trait Implementations

impl RefUnwindSafe for News

impl Send for News

impl Sync for News

impl Unpin for News

impl UnwindSafe for News

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.