Struct news_flash::models::category::Category[][src]

pub struct Category {
    pub category_id: CategoryID,
    pub label: String,
    pub parent_id: CategoryID,
    pub sort_index: Option<i32>,
    pub category_type: CategoryType,
}

Fields

category_id: CategoryIDlabel: Stringparent_id: CategoryIDsort_index: Option<i32>category_type: CategoryType

Implementations

impl Category[src]

Trait Implementations

impl Clone for Category[src]

impl Debug for Category[src]

impl Eq for Category[src]

impl HasTable for Category[src]

type Table = table

The table this type is associated with.

impl Hash for Category[src]

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

type Id = &'ident CategoryID

The type of this struct’s identifier. Read more

impl PartialEq<Category> for Category[src]

impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Category where
    (CategoryID, String, CategoryID, Option<i32>, CategoryType): Queryable<__ST, __DB>, 
[src]

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

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

impl StructuralEq for Category[src]

impl StructuralPartialEq for Category[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<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>,