[]Struct sn0int::schema::phonenumbers::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.

Methods

impl table

pub fn star(&self) -> star

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

Trait Implementations

impl Copy for table

impl Clone for table

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for table

impl HasTable for table

type Table = Self

The table this type is associated with.

impl Table for table

type PrimaryKey = id

The type returned by primary_key

type AllColumns = (id, value, name, unscoped, valid, last_online, country, carrier, line, is_ported, last_ported, caller_name, caller_type)

The type returned by all_columns

impl<'a, 'insert> Insertable<table> for NewPhoneNumber<'a>
[src]

type Values = <(Option<Eq<value, &'a str>>, Option<Eq<name, &'a String>>, Option<Eq<valid, bool>>, Option<Eq<last_online, NaiveDateTime>>, Option<Eq<country, &'a String>>, Option<Eq<carrier, &'a String>>, Option<Eq<line, &'a String>>, Option<Eq<is_ported, bool>>, Option<Eq<last_ported, NaiveDateTime>>, Option<Eq<caller_name, &'a String>>, Option<Eq<caller_type, &'a String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

fn insert_into(
    self,
    table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]

Insert self into a given table. Read more

impl<'a, 'insert> Insertable<table> for &'insert NewPhoneNumber<'a>
[src]

type Values = <(Option<Eq<value, &'insert &'a str>>, Option<Eq<name, &'insert &'a String>>, Option<Eq<valid, &'insert bool>>, Option<Eq<last_online, &'insert NaiveDateTime>>, Option<Eq<country, &'insert &'a String>>, Option<Eq<carrier, &'insert &'a String>>, Option<Eq<line, &'insert &'a String>>, Option<Eq<is_ported, &'insert bool>>, Option<Eq<last_ported, &'insert NaiveDateTime>>, Option<Eq<caller_name, &'insert &'a String>>, Option<Eq<caller_type, &'insert &'a String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

fn insert_into(
    self,
    table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]

Insert self into a given table. Read more

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

type Values = <(Option<Eq<value, String>>, Option<Eq<name, String>>, Option<Eq<valid, bool>>, Option<Eq<last_online, NaiveDateTime>>, Option<Eq<country, String>>, Option<Eq<carrier, String>>, Option<Eq<line, String>>, Option<Eq<is_ported, bool>>, Option<Eq<last_ported, NaiveDateTime>>, Option<Eq<caller_name, String>>, Option<Eq<caller_type, String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

fn insert_into(
    self,
    table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]

Insert self into a given table. Read more

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

type Values = <(Option<Eq<value, &'insert String>>, Option<Eq<name, &'insert String>>, Option<Eq<valid, &'insert bool>>, Option<Eq<last_online, &'insert NaiveDateTime>>, Option<Eq<country, &'insert String>>, Option<Eq<carrier, &'insert String>>, Option<Eq<line, &'insert String>>, Option<Eq<is_ported, &'insert bool>>, Option<Eq<last_ported, &'insert NaiveDateTime>>, Option<Eq<caller_name, &'insert String>>, Option<Eq<caller_type, &'insert String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

fn insert_into(
    self,
    table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]

Insert self into a given table. Read more

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 insert_into(
    self,
    table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]

Insert self into a given table. Read more

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 insert_into(
    self,
    table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]

Insert self into a given table. Read more

impl QuerySource for table

type FromClause = Identifier<'static>

The type returned by from_clause

type DefaultSelection = Self::AllColumns

The type returned by default_selection

impl AppearsOnTable<table> for star

impl SelectableExpression<table> for star

impl SelectableExpression<table> for id

impl SelectableExpression<table> for value

impl SelectableExpression<table> for name

impl SelectableExpression<table> for unscoped

impl SelectableExpression<table> for valid

impl SelectableExpression<table> for last_online

impl SelectableExpression<table> for country

impl SelectableExpression<table> for carrier

impl SelectableExpression<table> for line

impl SelectableExpression<table> for is_ported

impl SelectableExpression<table> for last_ported

impl SelectableExpression<table> for caller_name

impl SelectableExpression<table> for caller_type

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

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

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

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

impl AsQuery for table

type SqlType = SqlType

The SQL type of Self::Query

type Query = SelectStatement<Self>

What kind of query does this type represent?

impl AppearsInFromClause<table> for table

type Count = Once

How many times does Self appear in QS?

impl AppearsInFromClause<table> for ()

type Count = Never

How many times does Self appear in QS?

impl AppearsInFromClause<table> for table

type Count = Never

How many times does Self appear in QS?

impl AppearsInFromClause<table> for table

type Count = Never

How many times does Self appear in QS?

impl AppearsInFromClause<table> for table

type Count = Never

How many times does Self appear in QS?

impl AppearsInFromClause<table> for table

type Count = Never

How many times does Self appear in QS?

impl AppearsInFromClause<table> for table

type Count = Never

How many times does Self appear in QS?

impl AppearsInFromClause<table> for table

type Count = Never

How many times does Self appear in QS?

impl AppearsInFromClause<table> for table

type Count = Never

How many times does Self appear in QS?

impl AppearsInFromClause<table> for table

type Count = Never

How many times does Self appear in QS?

impl AppearsInFromClause<table> for table

type Count = Never

How many times does Self appear in QS?

impl AppearsInFromClause<table> for table

type Count = Never

How many times does Self appear in QS?

impl AppearsInFromClause<table> for table

type Count = Never

How many times does Self appear in QS?

impl AppearsInFromClause<table> for table

type Count = Never

How many times does Self appear in QS?

impl AppearsInFromClause<table> for table

type Count = Never

How many times does Self appear in QS?

impl AppearsInFromClause<table> for table

type Count = Never

How many times does Self appear in QS?

impl AppearsInFromClause<table> for table

type Count = Never

How many times does Self appear in QS?

impl AppearsInFromClause<table> for table

type Count = Never

How many times does Self appear in QS?

impl AppearsInFromClause<table> for table

type Count = Never

How many times does Self appear in QS?

impl AppearsInFromClause<table> for table

type Count = Never

How many times does Self appear in QS?

impl QueryId for table

type QueryId = table

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

fn query_id() -> Option<TypeId>
[src]

Returns the type id of Self::QueryId if Self::HAS_STATIC_QUERY_ID. Returns None otherwise. Read more

impl<'a, 'insert> UndecoratedInsertRecord<table> for NewPhoneNumber<'a>
[src]

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

impl IntoUpdateTarget for table

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

What is the WHERE clause of this target?

Auto Trait Implementations

impl Send for table

impl Sync for table

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

The type returned by .group_by

impl<T, Conn> RunQueryDsl for T where
    T: Table
[src]

fn execute(self, conn: &Conn) -> Result<usize, Error> where
    Conn: Connection,
    Self: ExecuteDsl<Conn, <Conn as Connection>::Backend>, 
[src]

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]

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]

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]

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]

Attempts to load a single record. Read more

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

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

The type returned by .filter.

impl<T> QueryDsl for T where
    T: Table
[src]

fn distinct(self) -> Self::Output where
    Self: DistinctDsl
[src]

Adds the DISTINCT keyword to a query. Read more

fn select<Selection>(self, selection: Selection) -> Self::Output where
    Selection: Expression,
    Self: SelectDsl<Selection>, 
[src]

Adds a SELECT clause to the query. Read more

fn count(self) -> Self::Output where
    Self: SelectDsl<CountStar>, 
[src]

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]

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]

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]

Alias for [left_outer_join]. Read more

fn filter<Predicate>(self, predicate: Predicate) -> Self::Output where
    Self: FilterDsl<Predicate>, 
[src]

Adds to the WHERE clause of a query. Read more

fn or_filter<Predicate>(self, predicate: Predicate) -> Self::Output where
    Self: OrFilterDsl<Predicate>, 
[src]

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]

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]

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]

Alias for order

fn then_order_by<Order>(self, order: Order) -> Self::Output where
    Self: ThenOrderDsl<Order>, 
[src]

Appends to the ORDER BY clause of this SQL query. Read more

fn limit(self, limit: i64) -> Self::Output where
    Self: LimitDsl
[src]

Sets the limit clause of the query. Read more

fn offset(self, offset: i64) -> Self::Output where
    Self: OffsetDsl
[src]

Sets the offset clause of the query. Read more

fn for_update(self) -> Self::Output where
    Self: ForUpdateDsl
[src]

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]

Adds FOR NO KEY UPDATE to the end of the select statement. Read more

fn for_share(self) -> Self::Output where
    Self: LockingDsl<ForShare>, 
[src]

Adds FOR SHARE to the end of the select statement. Read more

fn for_key_share(self) -> Self::Output where
    Self: LockingDsl<ForKeyShare>, 
[src]

Adds FOR KEY SHARE to the end of the select statement. Read more

fn skip_locked(self) -> Self::Output where
    Self: ModifyLockDsl<SkipLocked>, 
[src]

Adds SKIP LOCKED to the end of a FOR UPDATE clause. Read more

fn no_wait(self) -> Self::Output where
    Self: ModifyLockDsl<NoWait>, 
[src]

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]

Boxes the pieces of a query into a single type. Read more

fn single_value(self) -> Self::Output where
    Self: SingleValueDsl
[src]

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]

fn on<On>(self, on: On) -> OnClauseWrapper<Self, On>
[src]

See the trait documentation.

impl<Lhs, Rhs, On> JoinTo for Lhs where
    Lhs: Table
[src]

type FromClause = Rhs

type OnClause = On

impl<T> IntoSql for T
[src]

fn into_sql<T>(self) -> Self::Expression where
    Self: AsExpression<T>, 
[src]

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]

Convert &self to an expression for Diesel's query builder. Read more

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

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> LimitDsl for T where
    T: Table,
    <T as AsQuery>::Query: LimitDsl
[src]

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

The type returned by .limit

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

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

The type returned by .order.

impl<Conn, T, U> LoadQuery 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> DistinctDsl for T where
    T: Table,
    <T as AsQuery>::Query: DistinctDsl
[src]

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

The type returned by .distinct

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

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

The type returned by .find.

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

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

The type returned by .offset.

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

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

The type returned by .then_order_by.

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

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

The type returned by .select

impl<T> ForUpdateDsl for T where
    T: LockingDsl<ForUpdate>, 
[src]

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<'a, T, DB> BoxedDsl for T where
    T: Table + AsQuery,
    <T as AsQuery>::Query: BoxedDsl<'a, DB>, 
[src]

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

The return type of internal_into_boxed

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

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

The type returned by .filter.

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, 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, 
[src]

type WhereClause = V

What is the WHERE clause of this target?

impl<T> Erased for T