Struct news_flash::models::feed::Feed[][src]

pub struct Feed {
    pub feed_id: FeedID,
    pub label: String,
    pub website: Option<Url>,
    pub feed_url: Option<Url>,
    pub icon_url: Option<Url>,
    pub sort_index: Option<i32>,
}

Fields

feed_id: FeedIDlabel: Stringwebsite: Option<Url>feed_url: Option<Url>icon_url: Option<Url>sort_index: Option<i32>

Implementations

impl Feed[src]

pub fn decompose(
    self
) -> (FeedID, String, Option<Url>, Option<Url>, Option<Url>, Option<i32>)
[src]

Trait Implementations

impl<__FK> BelongsTo<Feed> for FeedMapping where
    __FK: Hash + Eq,
    &'__a FeedID: Into<Option<&'__a __FK>>,
    &'__a Feed: Identifiable<Id = &'__a __FK>, 
[src]

type ForeignKey = __FK

The foreign key of this struct

type ForeignKeyColumn = feed_id

The database column representing the foreign key of the table this struct represents Read more

impl Clone for Feed[src]

impl Debug for Feed[src]

impl Eq for Feed[src]

impl HasTable for Feed[src]

type Table = table

The table this type is associated with.

impl Hash for Feed[src]

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

type Id = &'ident FeedID

The type of this struct’s identifier. Read more

impl PartialEq<Feed> for Feed[src]

impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Feed where
    (FeedID, String, Option<Url>, Option<Url>, Option<Url>, Option<i32>): Queryable<__ST, __DB>, 
[src]

type Row = <(FeedID, String, Option<Url>, Option<Url>, Option<Url>, Option<i32>) as Queryable<__ST, __DB>>::Row

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

impl StructuralEq for Feed[src]

impl StructuralPartialEq for Feed[src]

Auto Trait Implementations

impl RefUnwindSafe for Feed

impl Send for Feed

impl Sync for Feed

impl Unpin for Feed

impl UnwindSafe for Feed

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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> 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.

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