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
FromSql impls
Vec<T>for anyTwhich implementsToSql<ST>
Trait Implementations
impl<T: SqlOrd> SqlOrd for Array<T>[src]
impl<T: SqlOrd> SqlOrd for Array<T>impl<T> HasSqlType<Array<T>> for Pg where
Pg: HasSqlType<T>, [src]
impl<T> HasSqlType<Array<T>> for Pg where
Pg: HasSqlType<T>, fn metadata(lookup: &PgMetadataLookup) -> PgTypeMetadata[src]
fn metadata(lookup: &PgMetadataLookup) -> PgTypeMetadataFetch the metadata for the given type Read more
impl<T, ST> FromSql<Array<ST>, Pg> for Vec<T> where
T: FromSql<ST, Pg>, [src]
impl<T, ST> FromSql<Array<ST>, Pg> for Vec<T> where
T: FromSql<ST, Pg>, impl<'a, 'b, ST, T> AsExpression<Array<ST>> for &'a [T][src]
impl<'a, 'b, ST, T> AsExpression<Array<ST>> for &'a [T]type Expression = Bound<Array<ST>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<'a, 'b, ST, T> AsExpression<Array<ST>> for &'a &'b [T][src]
impl<'a, 'b, ST, T> AsExpression<Array<ST>> for &'a &'b [T]type Expression = Bound<Array<ST>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<'a, 'b, ST, T> AsExpression<Array<ST>> for Vec<T>[src]
impl<'a, 'b, ST, T> AsExpression<Array<ST>> for Vec<T>type Expression = Bound<Array<ST>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<'a, 'b, ST, T> AsExpression<Array<ST>> for &'a Vec<T>[src]
impl<'a, 'b, ST, T> AsExpression<Array<ST>> for &'a Vec<T>type Expression = Bound<Array<ST>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<'a, 'b, ST, T> AsExpression<Array<ST>> for &'a &'b Vec<T>[src]
impl<'a, 'b, ST, T> AsExpression<Array<ST>> for &'a &'b Vec<T>type Expression = Bound<Array<ST>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
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 [T] where
Pg: HasSqlType<ST>,
T: ToSql<ST, Pg>, impl<ST, T> ToSql<Array<ST>, Pg> for Vec<T> where
[T]: ToSql<Array<ST>, Pg>,
T: Debug, [src]
impl<ST, T> ToSql<Array<ST>, Pg> for Vec<T> where
[T]: ToSql<Array<ST>, Pg>,
T: Debug, impl<ST: QueryId> QueryId for Array<ST>[src]
impl<ST: QueryId> QueryId for Array<ST>type QueryId = Array<<ST as QueryId>::QueryId>
A type which uniquely represents Self in a SQL query. Read more
const HAS_STATIC_QUERY_ID: bool
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
fn query_id() -> Option<TypeId>[src]
fn query_id() -> Option<TypeId>Returns the type id of Self::QueryId if Self::HAS_STATIC_QUERY_ID. Returns None otherwise. Read more
impl<ST> NotNull for Array<ST>[src]
impl<ST> NotNull for Array<ST>impl<ST> SingleValue for Array<ST>[src]
impl<ST> SingleValue for Array<ST>impl<ST: Debug> Debug for Array<ST>[src]
impl<ST: Debug> Debug for Array<ST>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<ST: Clone> Clone for Array<ST>[src]
impl<ST: Clone> Clone for Array<ST>fn clone(&self) -> Array<ST>[src]
fn clone(&self) -> Array<ST>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<ST: Copy> Copy for Array<ST>[src]
impl<ST: Copy> Copy for Array<ST>impl<ST: Default> Default for Array<ST>[src]
impl<ST: Default> Default for Array<ST>