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§
source§impl<'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
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<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
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl HasSqlType<Range<BigInt>> for Pg
impl HasSqlType<Range<BigInt>> for Pg
source§fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
source§impl HasSqlType<Range<Date>> for Pg
impl HasSqlType<Range<Date>> for Pg
source§fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
source§impl HasSqlType<Range<Integer>> for Pg
impl HasSqlType<Range<Integer>> for Pg
source§fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
source§impl HasSqlType<Range<Numeric>> for Pg
impl HasSqlType<Range<Numeric>> for Pg
source§fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
source§impl HasSqlType<Range<Timestamp>> for Pg
impl HasSqlType<Range<Timestamp>> for Pg
source§fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
source§impl HasSqlType<Range<Timestamptz>> for Pg
impl HasSqlType<Range<Timestamptz>> for Pg
source§fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
source§impl<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§
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