pub struct Array<ST: 'static>(/* private fields */);
Expand description
The Array
SQL type.
This wraps another type to represent a SQL array of that type. Multidimensional arrays are not supported.
ToSql
impls
FromSql
impls
Vec<T>
for anyT
which implementsToSql<ST>
Trait Implementations§
source§impl<'a, 'b, ST: 'static, T> AsExpression<Array<ST>> for &'a &'b [T]
impl<'a, 'b, ST: 'static, T> AsExpression<Array<ST>> for &'a &'b [T]
§type Expression = Bound<Array<ST>, &'a &'b [T]>
type Expression = Bound<Array<ST>, &'a &'b [T]>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'a, 'b, ST: 'static, T> AsExpression<Array<ST>> for &'a &'b Vec<T>
impl<'a, 'b, ST: 'static, T> AsExpression<Array<ST>> for &'a &'b Vec<T>
§type Expression = Bound<Array<ST>, &'a &'b Vec<T, Global>>
type Expression = Bound<Array<ST>, &'a &'b Vec<T, Global>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'a, 'b, ST: 'static, T> AsExpression<Array<ST>> for &'a [T]
impl<'a, 'b, ST: 'static, T> AsExpression<Array<ST>> for &'a [T]
§type Expression = Bound<Array<ST>, &'a [T]>
type Expression = Bound<Array<ST>, &'a [T]>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'a, 'b, ST: 'static, T> AsExpression<Array<ST>> for &'a Vec<T>
impl<'a, 'b, ST: 'static, T> AsExpression<Array<ST>> for &'a Vec<T>
§type Expression = Bound<Array<ST>, &'a Vec<T, Global>>
type Expression = Bound<Array<ST>, &'a Vec<T, Global>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'a, 'b, ST: 'static, T> AsExpression<Array<ST>> for Vec<T>
impl<'a, 'b, ST: 'static, T> AsExpression<Array<ST>> for Vec<T>
§type Expression = Bound<Array<ST>, Vec<T, Global>>
type Expression = Bound<Array<ST>, Vec<T, Global>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<T> HasSqlType<Array<T>> for Pgwhere
Pg: HasSqlType<T>,
impl<T> HasSqlType<Array<T>> for Pgwhere Pg: HasSqlType<T>,
source§fn metadata(lookup: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(lookup: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
source§impl<ST: 'static + QueryId> QueryId for Array<ST>
impl<ST: 'static + QueryId> QueryId for Array<ST>
source§impl<ST, T> ToSql<Array<ST>, Pg> for Vec<T>where
ST: 'static,
[T]: ToSql<Array<ST>, Pg>,
T: Debug,
impl<ST, T> ToSql<Array<ST>, Pg> for Vec<T>where ST: 'static, [T]: ToSql<Array<ST>, Pg>, T: Debug,
impl<ST: Copy + 'static> Copy for Array<ST>
impl<ST: 'static> SingleValue for Array<ST>
impl<T: SqlOrd> SqlOrd for Array<T>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<ST, U, DB> CompatibleType<U, DB> for STwhere
DB: Backend,
ST: SqlType + SingleValue,
U: FromSqlRow<ST, DB>,
impl<ST, U, DB> CompatibleType<U, DB> for STwhere DB: Backend, ST: SqlType + SingleValue, U: FromSqlRow<ST, DB>,
source§impl<T> IntoNotNullable for Twhere
T: SqlType<IsNull = NotNull>,
impl<T> IntoNotNullable for Twhere T: SqlType<IsNull = NotNull>,
§type NotNullable = T
type NotNullable = T
The not nullable representation of this type. Read more
source§impl<T> IntoNullable for Twhere
T: SqlType<IsNull = NotNull> + SingleValue,
impl<T> IntoNullable for Twhere T: SqlType<IsNull = NotNull> + SingleValue,
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> AsExprOf<Self, T>where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> AsExprOf<Self, T>where Self: AsExpression<T> + Sized, T: SqlType + TypedExpressionType,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>where &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read more