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

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<T: SqlOrd> SqlOrd for Array<T>
[src]

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

[src]

Fetch the metadata for the given type Read more

[src]

Fetch the metadata for a tuple representing an entire row Read more

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

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

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

[src]

See the trait documentation.

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

The expression being returned

[src]

Perform the conversion

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

The expression being returned

[src]

Perform the conversion

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

The expression being returned

[src]

Perform the conversion

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

The expression being returned

[src]

Perform the conversion

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

The expression being returned

[src]

Perform the conversion

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

[src]

See the trait documentation.

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

[src]

See the trait documentation.

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

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

HAS_STATIC_QUERY_ID: bool = <ST as QueryId>::HAS_STATIC_QUERY_ID && true

Can the SQL generated by Self be uniquely identified by its type? Read more

[src]

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

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

[src]

Formats the value using the given formatter. Read more

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

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

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