[][src]Struct webapp::schema::sessions::table

pub struct table;

The actual table struct

This is the type which provides the base methods of the query builder, such as .select and .filter.

Implementations

impl table[src]

pub fn star(&self) -> star[src]

Represents table_name.*, which is sometimes necessary for efficient count queries. It cannot be used in place of all_columns

Trait Implementations

impl AppearsInFromClause<table> for table[src]

type Count = Once

How many times does Self appear in QS?

impl AppearsInFromClause<table> for ()[src]

type Count = Never

How many times does Self appear in QS?

impl AppearsOnTable<table> for star[src]

impl AsQuery for table[src]

type SqlType = SqlType

The SQL type of Self::Query

type Query = SelectStatement<Self>

What kind of query does this type represent?

impl Clone for table[src]

impl Copy for table[src]

impl Debug for table[src]

impl HasTable for table[src]

type Table = Self

The table this type is associated with.

impl<T> Insertable<T> for table where
    <table as AsQuery>::Query: Insertable<T>, 
[src]

type Values = <<table as AsQuery>::Query as Insertable<T>>::Values

The VALUES clause to insert these records Read more

impl<'a, T> Insertable<T> for &'a table where
    table: Insertable<T>, 
[src]

type Values = <table as Insertable<T>>::Values

The VALUES clause to insert these records Read more

impl<'insert> Insertable<table> for Session[src]

type Values = <(Option<Eq<token, String>>,) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl<'insert> Insertable<table> for &'insert Session[src]

type Values = <(Option<Eq<token, &'insert String>>,) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl IntoUpdateTarget for table[src]

type WhereClause = <Self::Query as IntoUpdateTarget>::WhereClause

What is the WHERE clause of this target?

impl<'a, QS, ST, DB> JoinTo<BoxedSelectStatement<'a, QS, ST, DB>> for table where
    BoxedSelectStatement<'a, QS, ST, DB>: JoinTo<table>, 
[src]

type FromClause = BoxedSelectStatement<'a, QS, ST, DB>

type OnClause = <BoxedSelectStatement<'a, QS, ST, DB> as JoinTo<table>>::OnClause

impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for table where
    Join<Left, Right, Kind>: JoinTo<table>, 
[src]

type FromClause = Join<Left, Right, Kind>

type OnClause = <Join<Left, Right, Kind> as JoinTo<table>>::OnClause

impl<Join, On> JoinTo<JoinOn<Join, On>> for table where
    JoinOn<Join, On>: JoinTo<table>, 
[src]

type FromClause = JoinOn<Join, On>

type OnClause = <JoinOn<Join, On> as JoinTo<table>>::OnClause

impl<F, S, D, W, O, L, Of, G> JoinTo<SelectStatement<F, S, D, W, O, L, Of, G, NoLockingClause>> for table where
    SelectStatement<F, S, D, W, O, L, Of, G>: JoinTo<table>, 
[src]

type FromClause = SelectStatement<F, S, D, W, O, L, Of, G>

type OnClause = <SelectStatement<F, S, D, W, O, L, Of, G> as JoinTo<table>>::OnClause

impl QueryId for table[src]

type QueryId = table

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

impl QuerySource for table[src]

type FromClause = Identifier<'static>

The type returned by from_clause

type DefaultSelection = Self::AllColumns

The type returned by default_selection

impl SelectableExpression<table> for star[src]

impl SelectableExpression<table> for token[src]

impl Table for table[src]

type PrimaryKey = token

The type returned by primary_key

type AllColumns = (token,)

The type returned by all_columns

impl<'insert> UndecoratedInsertRecord<table> for Session[src]

Auto Trait Implementations

impl RefUnwindSafe for table

impl Send for table

impl Sync for table

impl Unpin for table

impl UnwindSafe for table

Blanket Implementations

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

impl<T> AsQuery for T where
    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?

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

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

impl<'a, T, DB> BoxedDsl<'a, DB> for T where
    T: Table + AsQuery,
    <T as AsQuery>::Query: BoxedDsl<'a, DB>, 

type Output = <<T as AsQuery>::Query as BoxedDsl<'a, DB>>::Output

The return type of internal_into_boxed

impl<T> DistinctDsl for T where
    T: Table,
    <T as AsQuery>::Query: DistinctDsl, 

type Output = <<T as AsQuery>::Query as DistinctDsl>::Output

The type returned by .distinct

impl<T, Selection> DistinctOnDsl<Selection> for T where
    Selection: SelectableExpression<T>,
    T: Table,
    <T as AsQuery>::Query: DistinctOnDsl<Selection>, 

type Output = <<T as AsQuery>::Query as DistinctOnDsl<Selection>>::Output

The type returned by .distinct_on

impl<T, Predicate> FilterDsl<Predicate> for T where
    T: Table,
    <T as AsQuery>::Query: FilterDsl<Predicate>, 

type Output = <<T as AsQuery>::Query as FilterDsl<Predicate>>::Output

The type returned by .filter.

impl<T, PK> FindDsl<PK> for T where
    T: Table + FilterDsl<<<T as Table>::PrimaryKey as EqAll<PK>>::Output>,
    <T as Table>::PrimaryKey: EqAll<PK>, 

type Output = <T as FilterDsl<<<T as Table>::PrimaryKey as EqAll<PK>>::Output>>::Output

The type returned by .find.

impl<T> ForUpdateDsl for T where
    T: LockingDsl<ForUpdate>, 

type Output = <T as LockingDsl<ForUpdate>>::Output

👎 Deprecated since 1.3.0:

use LockingDsl<ForUpdate> instead

The type returned by for_update. See dsl::ForUpdate for convenient access to this type. Read more

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

impl<T, Expr> GroupByDsl<Expr> for T where
    Expr: Expression,
    T: Table + AsQuery,
    <T as AsQuery>::Query: GroupByDsl<Expr>, 

type Output = <<T as AsQuery>::Query as GroupByDsl<Expr>>::Output

The type returned by .group_by

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

impl<T> IntoSql for T

impl<T, Tab, V> IntoUpdateTarget for T where
    T: Identifiable<Table = Tab>,
    Tab: Table + FindDsl<<T as Identifiable>::Id>,
    <Tab as FindDsl<<T as Identifiable>::Id>>::Output: IntoUpdateTarget,
    <<Tab as FindDsl<<T as Identifiable>::Id>>::Output as HasTable>::Table == Tab,
    <<Tab as FindDsl<<T as Identifiable>::Id>>::Output as IntoUpdateTarget>::WhereClause == V, 

type WhereClause = V

What is the WHERE clause of this target?

impl<T> JoinOnDsl for T where
    T: QuerySource, 

impl<Lhs, Rhs, On> JoinTo<OnClauseWrapper<Rhs, On>> for Lhs where
    Lhs: Table, 

type FromClause = Rhs

type OnClause = On

impl<T> LimitDsl for T where
    T: Table,
    <T as AsQuery>::Query: LimitDsl, 

type Output = <<T as AsQuery>::Query as LimitDsl>::Output

The type returned by .limit

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, 

impl<T, Lock> LockingDsl<Lock> for T where
    T: Table + AsQuery,
    <T as AsQuery>::Query: LockingDsl<Lock>, 

type Output = <<T as AsQuery>::Query as LockingDsl<Lock>>::Output

The type returned by set_lock. See dsl::ForUpdate and friends for convenient access to this type. Read more

impl<T> OffsetDsl for T where
    T: Table,
    <T as AsQuery>::Query: OffsetDsl, 

type Output = <<T as AsQuery>::Query as OffsetDsl>::Output

The type returned by .offset.

impl<T, Predicate> OrFilterDsl<Predicate> for T where
    T: Table,
    <T as AsQuery>::Query: OrFilterDsl<Predicate>, 

type Output = <<T as AsQuery>::Query as OrFilterDsl<Predicate>>::Output

The type returned by .filter.

impl<T, Expr> OrderDsl<Expr> for T where
    Expr: Expression,
    T: Table,
    <T as AsQuery>::Query: OrderDsl<Expr>, 

type Output = <<T as AsQuery>::Query as OrderDsl<Expr>>::Output

The type returned by .order.

impl<T> QueryDsl for T where
    T: Table, 

impl<T, Conn> RunQueryDsl<Conn> for T where
    T: Table, 

impl<T, Selection> SelectDsl<Selection> for T where
    Selection: Expression,
    T: Table,
    <T as AsQuery>::Query: SelectDsl<Selection>, 

type Output = <<T as AsQuery>::Query as SelectDsl<Selection>>::Output

The type returned by .select

impl<T, Expr> ThenOrderDsl<Expr> for T where
    Expr: Expression,
    T: Table,
    <T as AsQuery>::Query: ThenOrderDsl<Expr>, 

type Output = <<T as AsQuery>::Query as ThenOrderDsl<Expr>>::Output

The type returned by .then_order_by.

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.