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

  • Vec<T> for any T which implements ToSql<ST>
  • &[T] for any T which implements ToSql<ST>

FromSql impls

  • Vec<T> for any T which implements ToSql<ST>

Trait Implementations

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: Clone> Clone for Array<ST>[src]

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

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

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

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

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

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

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

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

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

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]

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

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

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

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

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

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

type Nullable = Nullable<T>

The nullable representation of this type. Read more

impl<T> IntoSql 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.