[][src]Struct diesel::pg::types::sql_types::Array

pub struct Array<ST>(_);

The Array SQL type.

This wraps another type to represent a SQL array of that type. Multidimensional arrays are not supported, nor are arrays containing null.

ToSql impls

FromSql impls

Trait Implementations

impl<T, ST> FromSql<Array<ST>, Pg> for Vec<T> where
    T: FromSql<ST, Pg>, 
[src]

impl<'a, 'b, ST, T> AsExpression<Array<ST>> for &'a [T][src]

type Expression = Bound<Array<ST>, Self>

The expression being returned

impl<'a, 'b, ST, T> AsExpression<Array<ST>> for &'a &'b [T][src]

type Expression = Bound<Array<ST>, Self>

The expression being returned

impl<'a, 'b, ST, T> AsExpression<Array<ST>> for Vec<T>[src]

type Expression = Bound<Array<ST>, Self>

The expression being returned

impl<'a, 'b, ST, T> AsExpression<Array<ST>> for &'a Vec<T>[src]

type Expression = Bound<Array<ST>, Self>

The expression being returned

impl<'a, 'b, ST, T> AsExpression<Array<ST>> for &'a &'b Vec<T>[src]

type Expression = Bound<Array<ST>, Self>

The expression being returned

impl<ST: QueryId> QueryId for Array<ST>[src]

type QueryId = Array<<ST as QueryId>::QueryId>

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<ST, T> ToSql<Array<ST>, Pg> for [T] where
    Pg: HasSqlType<ST>,
    T: ToSql<ST, Pg>, 
[src]

impl<ST, T> ToSql<Array<ST>, Pg> for Vec<T> where
    [T]: ToSql<Array<ST>, Pg>,
    T: Debug
[src]

impl<T: SqlOrd> SqlOrd for Array<T>[src]

impl<T> HasSqlType<Array<T>> for Pg where
    Pg: HasSqlType<T>, 
[src]

impl<ST> NotNull for Array<ST>[src]

impl<ST> SingleValue for Array<ST>[src]

impl<ST: Default> Default for Array<ST>[src]

impl<ST: Clone> Clone for Array<ST>[src]

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

Performs copy-assignment from source. Read more

impl<ST: Copy> Copy for Array<ST>[src]

impl<ST: Debug> Debug for Array<ST>[src]

Auto Trait Implementations

impl<ST> Send for Array<ST> where
    ST: Send

impl<ST> Sync for Array<ST> where
    ST: Sync

Blanket Implementations

impl<T> IntoSql for T[src]

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

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

fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
    &'a Self: AsExpression<T>, 
[src]

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

impl<T> IntoNullable for T where
    T: NotNull
[src]

type Nullable = Nullable<T>

The nullable representation of this type. Read more

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

impl<T, U> Into<U> for T where
    U: From<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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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