pub struct Array<ST: 'static>(_);
postgres_backend
only.Expand description
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 anyT
which implementsToSql<ST>
Trait Implementations
sourceimpl<'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
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'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
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'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
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'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
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'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
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<T> HasSqlType<Array<T>> for Pg where
Pg: HasSqlType<T>,
impl<T> HasSqlType<Array<T>> for Pg where
Pg: HasSqlType<T>,
sourcefn metadata(lookup: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(lookup: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
sourceimpl<ST: 'static + QueryId> QueryId for Array<ST>
impl<ST: 'static + QueryId> QueryId for Array<ST>
sourceimpl<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>
postgres
only.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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoNotNullable for T where
T: SqlType<IsNull = NotNull>,
impl<T> IntoNotNullable for T where
T: SqlType<IsNull = NotNull>,
type NotNullable = T
type NotNullable = T
The not nullable representation of this type. Read more
sourceimpl<T> IntoNullable for T where
T: SqlType<IsNull = NotNull> + SingleValue,
impl<T> IntoNullable for T where
T: SqlType<IsNull = NotNull> + SingleValue,
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourcefn 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 more
sourcefn 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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more