Struct news_flash::models::headline::Headline[][src]

pub struct Headline {
    pub article_id: ArticleID,
    pub unread: Read,
    pub marked: Marked,
}

Fields

article_id: ArticleIDunread: Readmarked: Marked

Implementations

impl Headline[src]

pub fn from_article(article: &Article) -> Headline[src]

Trait Implementations

impl Debug for Headline[src]

impl HasTable for Headline[src]

type Table = table

The table this type is associated with.

impl<'ident> Identifiable for &'ident Headline[src]

type Id = &'ident ArticleID

The type of this struct’s identifier. Read more

impl PartialEq<Headline> for Headline[src]

impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Headline where
    (ArticleID, Read, Marked): Queryable<__ST, __DB>, 
[src]

type Row = <(ArticleID, Read, Marked) as Queryable<__ST, __DB>>::Row

The Rust type you’d like to map from. Read more

impl StructuralPartialEq for Headline[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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,