[][src]Struct atomic_lib::collections::Collection

pub struct Collection {
    pub tpf: TPFQuery,
    pub pages: Vec<Page>,
    pub sort_by: String,
    pub sort_desc: bool,
    pub page_size: u8,
    pub current_page: u8,
    pub total_items: u8,
    pub total_pages: u8,
}

Dynamic resource used for ordering, filtering and querying content. Features pagination.

Fields

tpf: TPFQuerypages: Vec<Page>sort_by: Stringsort_desc: boolpage_size: u8current_page: u8total_items: u8total_pages: u8

Trait Implementations

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

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.