[][src]Struct diesel_helper::Paginated

pub struct Paginated<T> {
    pub query: T,
    pub page: i32,
    pub page_size: i32,
}

Fields

query: Tpage: i32page_size: i32

Trait Implementations

impl<T: Clone> Clone for Paginated<T>[src]

impl<T: Copy> Copy for Paginated<T>[src]

impl<T: Debug> Debug for Paginated<T>[src]

impl<T: Query> Query for Paginated<T>[src]

type SqlType = (T::SqlType, BigInt)

The SQL type that this query represents. Read more

impl<T> QueryFragment<Pg> for Paginated<T> where
    T: QueryFragment<Backend>, 
[src]

impl<T: QueryId> QueryId for Paginated<T>[src]

type QueryId = Paginated<<T as QueryId>::QueryId>

A type which uniquely represents Self in a SQL query. Read more

impl<T> RunQueryDsl<PgConnection> for Paginated<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Paginated<T> where
    T: RefUnwindSafe

impl<T> Send for Paginated<T> where
    T: Send

impl<T> Sync for Paginated<T> where
    T: Sync

impl<T> Unpin for Paginated<T> where
    T: Unpin

impl<T> UnwindSafe for Paginated<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsQuery for T where
    T: Query
[src]

type SqlType = <T as Query>::SqlType

The SQL type of Self::Query

type Query = T

What kind of query does this type represent?

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Conn, DB, T> ExecuteDsl<Conn, DB> for T where
    Conn: Connection<Backend = DB>,
    DB: Backend,
    T: QueryFragment<DB> + QueryId
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T[src]

impl<Conn, T, U> LoadQuery<Conn, U> for T where
    Conn: Connection,
    T: AsQuery + RunQueryDsl<Conn>,
    U: Queryable<<T as AsQuery>::SqlType, <Conn as Connection>::Backend>,
    <Conn as Connection>::Backend: HasSqlType<<T as AsQuery>::SqlType>,
    <T as AsQuery>::Query: QueryFragment<<Conn as Connection>::Backend>,
    <T as AsQuery>::Query: QueryId
[src]

impl<T, Conn> RunQueryDsl<Conn> for T where
    T: Table
[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.