[]Struct sn0int::schema::ipaddrs::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 Clone for table

impl Copy for table

impl Debug for table

impl HasTable for table

type Table = Self

The table this type is associated with.

impl AppearsOnTable<table> for star

impl SelectableExpression<table> for star

impl SelectableExpression<table> for id

impl SelectableExpression<table> for family

impl SelectableExpression<table> for value

impl SelectableExpression<table> for unscoped

impl SelectableExpression<table> for continent

impl SelectableExpression<table> for continent_code

impl SelectableExpression<table> for country

impl SelectableExpression<table> for country_code

impl SelectableExpression<table> for city

impl SelectableExpression<table> for latitude

impl SelectableExpression<table> for longitude

impl SelectableExpression<table> for asn

impl SelectableExpression<table> for as_org

impl SelectableExpression<table> for description

impl SelectableExpression<table> for reverse_dns

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

type Values = <(Option<Eq<family, String>>, Option<Eq<value, String>>, Option<Eq<continent, String>>, Option<Eq<continent_code, String>>, Option<Eq<country, String>>, Option<Eq<country_code, String>>, Option<Eq<city, String>>, Option<Eq<latitude, f32>>, Option<Eq<longitude, f32>>, Option<Eq<asn, i32>>, Option<Eq<as_org, String>>, Option<Eq<description, String>>, Option<Eq<reverse_dns, String>>, Option<Eq<unscoped, bool>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

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

type Values = <(Option<Eq<family, &'insert String>>, Option<Eq<value, &'insert String>>, Option<Eq<continent, &'insert String>>, Option<Eq<continent_code, &'insert String>>, Option<Eq<country, &'insert String>>, Option<Eq<country_code, &'insert String>>, Option<Eq<city, &'insert String>>, Option<Eq<latitude, &'insert f32>>, Option<Eq<longitude, &'insert f32>>, Option<Eq<asn, &'insert i32>>, Option<Eq<as_org, &'insert String>>, Option<Eq<description, &'insert String>>, Option<Eq<reverse_dns, &'insert String>>, Option<Eq<unscoped, &'insert bool>>) as Insertable<table>>::Values

The VALUES clause to insert these records 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

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

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 JoinTo<table> for table

type FromClause = table

type OnClause = Eq<Nullable<ip_addr_id>, Nullable<<table as Table>::PrimaryKey>>

impl JoinTo<table> for table

type FromClause = table

type OnClause = Eq<Nullable<ip_addr_id>, Nullable<<table as Table>::PrimaryKey>>

impl JoinTo<table> for table

type FromClause = table

type OnClause = Eq<Nullable<ip_addr_id>, Nullable<<table as Table>::PrimaryKey>>

impl JoinTo<table> for table

type FromClause = table

type OnClause = Eq<Nullable<ip_addr_id>, Nullable<<table as Table>::PrimaryKey>>

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 Table for table

type PrimaryKey = id

The type returned by primary_key

type AllColumns = (id, family, value, unscoped, continent, continent_code, country, country_code, city, latitude, longitude, asn, as_org, description, reverse_dns)

The type returned by all_columns

impl IntoUpdateTarget for table

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

What is the WHERE clause of this target?

impl QueryId for table

type QueryId = table

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

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<'insert> UndecoratedInsertRecord<table> for NewIpAddr[src]

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 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?

Auto Trait Implementations

impl Send for table

impl Sync for table

impl Unpin for table

impl UnwindSafe for table

impl RefUnwindSafe for table

Blanket Implementations

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

impl<T> From<T> for T[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.

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

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

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

impl<T, Predicate> FilterDsl<Predicate> 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> IntoSql for T[src]

impl<T, Expr> GroupByDsl<Expr> 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> JoinOnDsl for T where
    T: QuerySource
[src]

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

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

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

type FromClause = Rhs

type OnClause = On

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, Selection> SelectDsl<Selection> 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<'a, T, DB> BoxedDsl<'a, DB> 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> 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<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, PK> FindDsl<PK> 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, Predicate> OrFilterDsl<Predicate> 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> 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> 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<T, Lock> LockingDsl<Lock> 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> 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> OrderDsl<Expr> 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<T, Expr> ThenOrderDsl<Expr> 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> 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T