pub struct Range<ST: 'static>(_);
Available on crate feature
postgres_backend
only.Expand description
The Range
SQL type.
This wraps another type to represent a SQL range of that type.
ToSql
impls
(Bound<T>, Bound<T>)
for anyT
which implementsToSql<ST>
.
FromSql
impls
(Bound<T>, Bound<T>)
for anyT
which implementsFromSql<ST>
.
Trait Implementations
sourceimpl<ST: 'static, T> AsExpression<Range<ST>> for (Bound<T>, Bound<T>)
impl<ST: 'static, T> AsExpression<Range<ST>> for (Bound<T>, Bound<T>)
type Expression = Bound<Range<ST>, (Bound<T>, Bound<T>)>
type Expression = Bound<Range<ST>, (Bound<T>, Bound<T>)>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'a, ST: 'static, T> AsExpression<Range<ST>> for &'a (Bound<T>, Bound<T>)
impl<'a, ST: 'static, T> AsExpression<Range<ST>> for &'a (Bound<T>, Bound<T>)
type Expression = Bound<Range<ST>, &'a (Bound<T>, Bound<T>)>
type Expression = Bound<Range<ST>, &'a (Bound<T>, Bound<T>)>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl HasSqlType<Range<BigInt>> for Pg
impl HasSqlType<Range<BigInt>> for Pg
sourcefn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
sourceimpl HasSqlType<Range<Date>> for Pg
impl HasSqlType<Range<Date>> for Pg
sourcefn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
sourceimpl HasSqlType<Range<Integer>> for Pg
impl HasSqlType<Range<Integer>> for Pg
sourcefn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
sourceimpl HasSqlType<Range<Numeric>> for Pg
impl HasSqlType<Range<Numeric>> for Pg
sourcefn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
sourceimpl HasSqlType<Range<Timestamp>> for Pg
impl HasSqlType<Range<Timestamp>> for Pg
sourcefn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
sourceimpl HasSqlType<Range<Timestamptz>> for Pg
impl HasSqlType<Range<Timestamptz>> for Pg
sourcefn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
sourceimpl<ST: 'static + QueryId> QueryId for Range<ST>
impl<ST: 'static + QueryId> QueryId for Range<ST>
impl<ST: Copy + 'static> Copy for Range<ST>
impl<ST: 'static> SingleValue for Range<ST>
Auto Trait Implementations
impl<ST> RefUnwindSafe for Range<ST> where
ST: RefUnwindSafe,
impl<ST> Send for Range<ST> where
ST: Send,
impl<ST> Sync for Range<ST> where
ST: Sync,
impl<ST> Unpin for Range<ST> where
ST: Unpin,
impl<ST> UnwindSafe for Range<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