[][src]Struct extrablatt::article::ArticleContent

pub struct ArticleContent<'a> {
    pub authors: Vec<Cow<'a, str>>,
    pub title: Option<Cow<'a, str>>,
    pub publishing_date: Option<ArticleDate>,
    pub keywords: Vec<Cow<'a, str>>,
    pub description: Option<Cow<'a, str>>,
    pub text: Option<Cow<'a, str>>,
    pub language: Option<Language>,
    pub thumbnail: Option<Url>,
    pub top_image: Option<Url>,
    pub references: Vec<Url>,
    pub images: Vec<Url>,
    pub videos: Vec<Url>,
}

Bundles all the content found for an article.

Fields

authors: Vec<Cow<'a, str>>title: Option<Cow<'a, str>>publishing_date: Option<ArticleDate>keywords: Vec<Cow<'a, str>>description: Option<Cow<'a, str>>text: Option<Cow<'a, str>>language: Option<Language>thumbnail: Option<Url>top_image: Option<Url>references: Vec<Url>images: Vec<Url>videos: Vec<Url>

Implementations

impl<'a> ArticleContent<'a>[src]

pub fn builder() -> ArticleContentBuilder<'a>[src]

Convenience method to create a ArticleContentBuilder

pub fn into_owned(self) -> ArticleContent<'static>[src]

Transfers ownership of the content directly to this ArticleContent.

Trait Implementations

impl<'a> Clone for ArticleContent<'a>[src]

impl<'a> Debug for ArticleContent<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for ArticleContent<'a>

impl<'a> Send for ArticleContent<'a>

impl<'a> Sync for ArticleContent<'a>

impl<'a> Unpin for ArticleContent<'a>

impl<'a> UnwindSafe for ArticleContent<'a>

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, 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.