[−][src]Struct diesel_helper::Paginated
Fields
query: T
page: i32
page_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]
impl<T> QueryFragment<Pg> for Paginated<T> where
T: QueryFragment<Backend>,
[src]
T: QueryFragment<Backend>,
fn walk_ast(&self, out: AstPass<'_, Backend>) -> QueryResult<()>
[src]
fn to_sql(&self, out: &mut <DB as Backend>::QueryBuilder) -> Result<(), Error>
[src]
fn collect_binds(
&self,
out: &mut <DB as Backend>::BindCollector,
metadata_lookup: &<DB as TypeMetadata>::MetadataLookup
) -> Result<(), Error>
[src]
&self,
out: &mut <DB as Backend>::BindCollector,
metadata_lookup: &<DB as TypeMetadata>::MetadataLookup
) -> Result<(), Error>
fn is_safe_to_cache_prepared(&self) -> Result<bool, Error>
[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
const HAS_STATIC_QUERY_ID: bool
[src]
fn query_id() -> Option<TypeId>
[src]
impl<T> RunQueryDsl<PgConnection> for Paginated<T>
[src]
fn execute(self, conn: &Conn) -> Result<usize, Error> where
Conn: Connection,
Self: ExecuteDsl<Conn, <Conn as Connection>::Backend>,
[src]
Conn: Connection,
Self: ExecuteDsl<Conn, <Conn as Connection>::Backend>,
fn load<U>(self, conn: &Conn) -> Result<Vec<U>, Error> where
Self: LoadQuery<Conn, U>,
[src]
Self: LoadQuery<Conn, U>,
fn get_result<U>(self, conn: &Conn) -> Result<U, Error> where
Self: LoadQuery<Conn, U>,
[src]
Self: LoadQuery<Conn, U>,
fn get_results<U>(self, conn: &Conn) -> Result<Vec<U>, Error> where
Self: LoadQuery<Conn, U>,
[src]
Self: LoadQuery<Conn, U>,
fn first<U>(self, conn: &Conn) -> Result<U, Error> where
Self: LimitDsl,
Self::Output: LoadQuery<Conn, U>,
[src]
Self: LimitDsl,
Self::Output: LoadQuery<Conn, U>,
Auto Trait Implementations
impl<T> RefUnwindSafe for Paginated<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Paginated<T> where
T: Send,
T: Send,
impl<T> Sync for Paginated<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Paginated<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Paginated<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsQuery for T where
T: Query,
[src]
T: Query,
type SqlType = <T as Query>::SqlType
The SQL type of Self::Query
type Query = T
What kind of query does this type represent?
fn as_query(self) -> <T as AsQuery>::Query
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Conn, DB, T> ExecuteDsl<Conn, DB> for T where
Conn: Connection<Backend = DB>,
DB: Backend,
T: QueryFragment<DB> + QueryId,
[src]
Conn: Connection<Backend = DB>,
DB: Backend,
T: QueryFragment<DB> + QueryId,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
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]
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,
impl<T, Conn> RunQueryDsl<Conn> for T where
T: Table,
[src]
T: Table,
fn execute(self, conn: &Conn) -> Result<usize, Error> where
Conn: Connection,
Self: ExecuteDsl<Conn, <Conn as Connection>::Backend>,
[src]
Conn: Connection,
Self: ExecuteDsl<Conn, <Conn as Connection>::Backend>,
fn load<U>(self, conn: &Conn) -> Result<Vec<U>, Error> where
Self: LoadQuery<Conn, U>,
[src]
Self: LoadQuery<Conn, U>,
fn get_result<U>(self, conn: &Conn) -> Result<U, Error> where
Self: LoadQuery<Conn, U>,
[src]
Self: LoadQuery<Conn, U>,
fn get_results<U>(self, conn: &Conn) -> Result<Vec<U>, Error> where
Self: LoadQuery<Conn, U>,
[src]
Self: LoadQuery<Conn, U>,
fn first<U>(self, conn: &Conn) -> Result<U, Error> where
Self: LimitDsl,
Self::Output: LoadQuery<Conn, U>,
[src]
Self: LimitDsl,
Self::Output: LoadQuery<Conn, U>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,