[−]Struct sudoku_backend::ops::tables::users::table
The actual table struct
This is the type which provides the base methods of the query
builder, such as .select and .filter.
Methods
impl table
impl tablepub fn star(&self) -> star
pub fn star(&self) -> starRepresents table_name.*, which is sometimes necessary
for efficient count queries. It cannot be used in place of
all_columns
Trait Implementations
impl Clone for table
impl Clone for tablefn clone(&self) -> table
fn clone(&self) -> tablefn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for table
impl Copy for tableimpl Debug for table
impl Debug for tableimpl HasTable for table
impl HasTable for tableimpl Table for table
impl Table for tabletype PrimaryKey = id
The type returned by primary_key
type AllColumns = (id, username, password, email, created_at, is_admin, points_total, games_total, games_total_easy, games_total_medium, games_total_hard)
The type returned by all_columns
fn primary_key(&self) -> Self::PrimaryKey
fn primary_key(&self) -> Self::PrimaryKeyfn all_columns() -> Self::AllColumns
fn all_columns() -> Self::AllColumnsimpl<'insert> Insertable<table> for User[src]
impl<'insert> Insertable<table> for Usertype Values = <(Option<Eq<id, i32>>, Option<Eq<username, String>>, Option<Eq<password, String>>, Option<Eq<email, String>>, Option<Eq<created_at, NaiveDateTime>>, Option<Eq<is_admin, bool>>, Option<Eq<points_total, i32>>, Option<Eq<games_total, i32>>, Option<Eq<games_total_easy, i32>>, Option<Eq<games_total_medium, i32>>, Option<Eq<games_total_hard, i32>>) as Insertable<table>>::Values
The VALUES clause to insert these records Read more
fn values(self) -> Self::Values[src]
fn values(self) -> Self::Valuesfn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>[src]
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>Insert self into a given table. Read more
impl<'insert> Insertable<table> for &'insert User[src]
impl<'insert> Insertable<table> for &'insert Usertype Values = <(Option<Eq<id, &'insert i32>>, Option<Eq<username, &'insert String>>, Option<Eq<password, &'insert String>>, Option<Eq<email, &'insert String>>, Option<Eq<created_at, &'insert NaiveDateTime>>, Option<Eq<is_admin, &'insert bool>>, Option<Eq<points_total, &'insert i32>>, Option<Eq<games_total, &'insert i32>>, Option<Eq<games_total_easy, &'insert i32>>, Option<Eq<games_total_medium, &'insert i32>>, Option<Eq<games_total_hard, &'insert i32>>) as Insertable<table>>::Values
The VALUES clause to insert these records Read more
fn values(self) -> Self::Values[src]
fn values(self) -> Self::Valuesfn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>[src]
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>Insert self into a given table. Read more
impl<T> Insertable<T> for table where
<table as AsQuery>::Query: Insertable<T>,
impl<T> Insertable<T> for table where
<table as AsQuery>::Query: Insertable<T>, type Values = <<table as AsQuery>::Query as Insertable<T>>::Values
The VALUES clause to insert these records Read more
fn values(self) -> Self::Values
fn values(self) -> Self::Valuesfn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>[src]
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>Insert self into a given table. Read more
impl<'a, T> Insertable<T> for &'a table where
table: Insertable<T>,
impl<'a, T> Insertable<T> for &'a table where
table: Insertable<T>, type Values = <table as Insertable<T>>::Values
The VALUES clause to insert these records Read more
fn values(self) -> Self::Values
fn values(self) -> Self::Valuesfn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>[src]
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>Insert self into a given table. Read more
impl QuerySource for table
impl QuerySource for tabletype FromClause = Identifier<'static>
The type returned by from_clause
type DefaultSelection = Self::AllColumns
The type returned by default_selection
fn from_clause(&self) -> Self::FromClause
fn from_clause(&self) -> Self::FromClausefn default_selection(&self) -> Self::DefaultSelection
fn default_selection(&self) -> Self::DefaultSelectionimpl AppearsOnTable<table> for star
impl AppearsOnTable<table> for starimpl SelectableExpression<table> for star
impl SelectableExpression<table> for starimpl SelectableExpression<table> for id
impl SelectableExpression<table> for idimpl SelectableExpression<table> for username
impl SelectableExpression<table> for usernameimpl SelectableExpression<table> for password
impl SelectableExpression<table> for passwordimpl SelectableExpression<table> for email
impl SelectableExpression<table> for emailimpl SelectableExpression<table> for created_at
impl SelectableExpression<table> for created_atimpl SelectableExpression<table> for is_admin
impl SelectableExpression<table> for is_adminimpl SelectableExpression<table> for points_total
impl SelectableExpression<table> for points_totalimpl SelectableExpression<table> for games_total
impl SelectableExpression<table> for games_totalimpl SelectableExpression<table> for games_total_easy
impl SelectableExpression<table> for games_total_easyimpl SelectableExpression<table> for games_total_medium
impl SelectableExpression<table> for games_total_mediumimpl SelectableExpression<table> for games_total_hard
impl SelectableExpression<table> for games_total_hardimpl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for table where
Join<Left, Right, Kind>: JoinTo<table>,
impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for table where
Join<Left, Right, Kind>: JoinTo<table>, type FromClause = Join<Left, Right, Kind>
type OnClause = <Join<Left, Right, Kind> as JoinTo<table>>::OnClause
fn join_target(
rhs: Join<Left, Right, Kind>
) -> (Self::FromClause, Self::OnClause)
fn join_target(
rhs: Join<Left, Right, Kind>
) -> (Self::FromClause, Self::OnClause)impl<Join, On> JoinTo<JoinOn<Join, On>> for table where
JoinOn<Join, On>: JoinTo<table>,
impl<Join, On> JoinTo<JoinOn<Join, On>> for table where
JoinOn<Join, On>: JoinTo<table>, type FromClause = JoinOn<Join, On>
type OnClause = <JoinOn<Join, On> as JoinTo<table>>::OnClause
fn join_target(rhs: JoinOn<Join, On>) -> (Self::FromClause, Self::OnClause)
fn join_target(rhs: JoinOn<Join, On>) -> (Self::FromClause, Self::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>,
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>, 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
fn join_target(
rhs: SelectStatement<F, S, D, W, O, L, Of, G>
) -> (Self::FromClause, Self::OnClause)
fn join_target(
rhs: SelectStatement<F, S, D, W, O, L, Of, G>
) -> (Self::FromClause, Self::OnClause)impl<'a, QS, ST, DB> JoinTo<BoxedSelectStatement<'a, QS, ST, DB>> for table where
BoxedSelectStatement<'a, QS, ST, DB>: JoinTo<table>,
impl<'a, QS, ST, DB> JoinTo<BoxedSelectStatement<'a, QS, ST, DB>> for table where
BoxedSelectStatement<'a, QS, ST, DB>: JoinTo<table>, type FromClause = BoxedSelectStatement<'a, QS, ST, DB>
type OnClause = <BoxedSelectStatement<'a, QS, ST, DB> as JoinTo<table>>::OnClause
fn join_target(
rhs: BoxedSelectStatement<'a, QS, ST, DB>
) -> (Self::FromClause, Self::OnClause)
fn join_target(
rhs: BoxedSelectStatement<'a, QS, ST, DB>
) -> (Self::FromClause, Self::OnClause)impl AsQuery for table
impl AsQuery for tabletype SqlType = SqlType
The SQL type of Self::Query
type Query = SelectStatement<Self>
What kind of query does this type represent?
fn as_query(self) -> Self::Query
fn as_query(self) -> Self::Queryimpl QueryId for table
impl QueryId for tabletype QueryId = table
A type which uniquely represents Self in a SQL query. Read more
const HAS_STATIC_QUERY_ID: bool
fn query_id() -> Option<TypeId>[src]
fn query_id() -> Option<TypeId>Returns the type id of Self::QueryId if Self::HAS_STATIC_QUERY_ID. Returns None otherwise. Read more
impl IntoUpdateTarget for table
impl IntoUpdateTarget for tabletype WhereClause = <Self::Query as IntoUpdateTarget>::WhereClause
What is the WHERE clause of this target?
fn into_update_target(self) -> UpdateTarget<Self::Table, Self::WhereClause>
fn into_update_target(self) -> UpdateTarget<Self::Table, Self::WhereClause>impl<'insert> UndecoratedInsertRecord<table> for User[src]
impl<'insert> UndecoratedInsertRecord<table> for Userimpl AppearsInFromClause<table> for table
impl AppearsInFromClause<table> for tabletype Count = Once
How many times does Self appear in QS?
impl AppearsInFromClause<table> for ()
impl AppearsInFromClause<table> for ()type Count = Never
How many times does Self appear in QS?
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T> Typeable for T where
T: Any, [src]
impl<T> Typeable for T where
T: Any, impl<T, Expr> GroupByDsl for T where
Expr: Expression,
T: Table + AsQuery,
<T as AsQuery>::Query: GroupByDsl<Expr>, [src]
impl<T, Expr> GroupByDsl 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
fn group_by(self, expr: Expr) -> <T as GroupByDsl<Expr>>::Output[src]
fn group_by(self, expr: Expr) -> <T as GroupByDsl<Expr>>::Outputimpl<T, Conn> RunQueryDsl for T where
T: Table, [src]
impl<T, Conn> RunQueryDsl for T where
T: Table, fn execute(self, conn: &Conn) -> Result<usize, Error> where
Conn: Connection,
Self: ExecuteDsl<Conn, <Conn as Connection>::Backend>, [src]
fn execute(self, conn: &Conn) -> Result<usize, Error> where
Conn: Connection,
Self: ExecuteDsl<Conn, <Conn as Connection>::Backend>, Executes the given command, returning the number of rows affected. Read more
fn load<U>(self, conn: &Conn) -> Result<Vec<U>, Error> where
Self: LoadQuery<Conn, U>, [src]
fn load<U>(self, conn: &Conn) -> Result<Vec<U>, Error> where
Self: LoadQuery<Conn, U>, Executes the given query, returning a Vec with the returned rows. Read more
fn get_result<U>(self, conn: &Conn) -> Result<U, Error> where
Self: LoadQuery<Conn, U>, [src]
fn get_result<U>(self, conn: &Conn) -> Result<U, Error> where
Self: LoadQuery<Conn, U>, Runs the command, and returns the affected row. Read more
fn get_results<U>(self, conn: &Conn) -> Result<Vec<U>, Error> where
Self: LoadQuery<Conn, U>, [src]
fn get_results<U>(self, conn: &Conn) -> Result<Vec<U>, Error> where
Self: LoadQuery<Conn, U>, Runs the command, returning an Vec with the affected rows. Read more
fn first<U>(self, conn: &Conn) -> Result<U, Error> where
Self: LimitDsl,
Self::Output: LoadQuery<Conn, U>, [src]
fn first<U>(self, conn: &Conn) -> Result<U, Error> where
Self: LimitDsl,
Self::Output: LoadQuery<Conn, U>, Attempts to load a single record. Read more
impl<T> QueryDsl for T where
T: Table, [src]
impl<T> QueryDsl for T where
T: Table, fn distinct(self) -> Self::Output where
Self: DistinctDsl, [src]
fn distinct(self) -> Self::Output where
Self: DistinctDsl, Adds the DISTINCT keyword to a query. Read more
fn select<Selection>(self, selection: Selection) -> Self::Output where
Selection: Expression,
Self: SelectDsl<Selection>, [src]
fn select<Selection>(self, selection: Selection) -> Self::Output where
Selection: Expression,
Self: SelectDsl<Selection>, Adds a SELECT clause to the query. Read more
fn count(self) -> Self::Output where
Self: SelectDsl<CountStar>, [src]
fn count(self) -> Self::Output where
Self: SelectDsl<CountStar>, Get the count of a query. This is equivalent to .select(count_star()) Read more
fn inner_join<Rhs>(self, rhs: Rhs) -> Self::Output where
Self: JoinWithImplicitOnClause<Rhs, Inner>, [src]
fn inner_join<Rhs>(self, rhs: Rhs) -> Self::Output where
Self: JoinWithImplicitOnClause<Rhs, Inner>, Join two tables using a SQL INNER JOIN. Read more
fn left_outer_join<Rhs>(self, rhs: Rhs) -> Self::Output where
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>, [src]
fn left_outer_join<Rhs>(self, rhs: Rhs) -> Self::Output where
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>, Join two tables using a SQL LEFT OUTER JOIN. Read more
fn left_join<Rhs>(self, rhs: Rhs) -> Self::Output where
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>, [src]
fn left_join<Rhs>(self, rhs: Rhs) -> Self::Output where
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>, Alias for [left_outer_join]. Read more
fn filter<Predicate>(self, predicate: Predicate) -> Self::Output where
Self: FilterDsl<Predicate>, [src]
fn filter<Predicate>(self, predicate: Predicate) -> Self::Output where
Self: FilterDsl<Predicate>, Adds to the WHERE clause of a query. Read more
fn or_filter<Predicate>(self, predicate: Predicate) -> Self::Output where
Self: OrFilterDsl<Predicate>, [src]
fn or_filter<Predicate>(self, predicate: Predicate) -> Self::Output where
Self: OrFilterDsl<Predicate>, Adds to the WHERE clause of a query using OR Read more
fn find<PK>(self, id: PK) -> Self::Output where
Self: FindDsl<PK>, [src]
fn find<PK>(self, id: PK) -> Self::Output where
Self: FindDsl<PK>, Attempts to find a single record from the given table by primary key. Read more
fn order<Expr>(self, expr: Expr) -> Self::Output where
Expr: Expression,
Self: OrderDsl<Expr>, [src]
fn order<Expr>(self, expr: Expr) -> Self::Output where
Expr: Expression,
Self: OrderDsl<Expr>, Sets the order clause of a query. Read more
fn order_by<Expr>(self, expr: Expr) -> Self::Output where
Expr: Expression,
Self: OrderDsl<Expr>, [src]
fn order_by<Expr>(self, expr: Expr) -> Self::Output where
Expr: Expression,
Self: OrderDsl<Expr>, Alias for order
fn then_order_by<Order>(self, order: Order) -> Self::Output where
Self: ThenOrderDsl<Order>, [src]
fn then_order_by<Order>(self, order: Order) -> Self::Output where
Self: ThenOrderDsl<Order>, Appends to the ORDER BY clause of this SQL query. Read more
fn limit(self, limit: i64) -> Self::Output where
Self: LimitDsl, [src]
fn limit(self, limit: i64) -> Self::Output where
Self: LimitDsl, Sets the limit clause of the query. Read more
fn offset(self, offset: i64) -> Self::Output where
Self: OffsetDsl, [src]
fn offset(self, offset: i64) -> Self::Output where
Self: OffsetDsl, Sets the offset clause of the query. Read more
fn for_update(self) -> Self::Output where
Self: ForUpdateDsl, [src]
fn for_update(self) -> Self::Output where
Self: ForUpdateDsl, Adds FOR UPDATE to the end of the select statement. Read more
fn for_no_key_update(self) -> Self::Output where
Self: LockingDsl<ForNoKeyUpdate>, [src]
fn for_no_key_update(self) -> Self::Output where
Self: LockingDsl<ForNoKeyUpdate>, Adds FOR NO KEY UPDATE to the end of the select statement. Read more
Adds FOR SHARE to the end of the select statement. Read more
Adds FOR KEY SHARE to the end of the select statement. Read more
fn skip_locked(self) -> Self::Output where
Self: ModifyLockDsl<SkipLocked>, [src]
fn skip_locked(self) -> Self::Output where
Self: ModifyLockDsl<SkipLocked>, Adds SKIP LOCKED to the end of a FOR UPDATE clause. Read more
fn no_wait(self) -> Self::Output where
Self: ModifyLockDsl<NoWait>, [src]
fn no_wait(self) -> Self::Output where
Self: ModifyLockDsl<NoWait>, Adds NOWAIT to the end of a FOR UPDATE clause. Read more
fn into_boxed<'a, DB>(self) -> Self::Output where
DB: Backend,
Self: BoxedDsl<'a, DB>, [src]
fn into_boxed<'a, DB>(self) -> Self::Output where
DB: Backend,
Self: BoxedDsl<'a, DB>, Boxes the pieces of a query into a single type. Read more
fn single_value(self) -> Self::Output where
Self: SingleValueDsl, [src]
fn single_value(self) -> Self::Output where
Self: SingleValueDsl, Wraps this select statement in parenthesis, allowing it to be used as an expression. Read more
impl<T> JoinOnDsl for T where
T: QuerySource, [src]
impl<T> JoinOnDsl for T where
T: QuerySource, impl<Lhs, Rhs, On> JoinTo for Lhs where
Lhs: Table, [src]
impl<Lhs, Rhs, On> JoinTo for Lhs where
Lhs: Table, type FromClause = Rhs
type OnClause = On
fn join_target(
rhs: OnClauseWrapper<Rhs, On>
) -> (<Lhs as JoinTo<OnClauseWrapper<Rhs, On>>>::FromClause, <Lhs as JoinTo<OnClauseWrapper<Rhs, On>>>::OnClause)[src]
fn join_target(
rhs: OnClauseWrapper<Rhs, On>
) -> (<Lhs as JoinTo<OnClauseWrapper<Rhs, On>>>::FromClause, <Lhs as JoinTo<OnClauseWrapper<Rhs, On>>>::OnClause)impl<T> IntoSql for T[src]
impl<T> IntoSql for Tfn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>, [src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>, Convert self to an expression for Diesel's query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>, [src]
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>, Convert &self to an expression for Diesel's query builder. Read more