[−][src]Struct diesel::pg::types::sql_types::Range
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
impl<ST, T> AsExpression<Range<ST>> for (Bound<T>, Bound<T>)
[src]
type Expression = SqlBound<Range<ST>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl<'a, ST, T> AsExpression<Range<ST>> for &'a (Bound<T>, Bound<T>)
[src]
type Expression = SqlBound<Range<ST>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl<ST: Clone> Clone for Range<ST>
[src]
impl<ST: Copy> Copy for Range<ST>
[src]
impl<ST: Debug> Debug for Range<ST>
[src]
impl<ST: Default> Default for Range<ST>
[src]
impl<T, ST> FromSql<Range<ST>, Pg> for (Bound<T>, Bound<T>) where
T: FromSql<ST, Pg>,
[src]
T: FromSql<ST, Pg>,
impl<T, ST> FromSqlRow<Range<ST>, Pg> for (Bound<T>, Bound<T>) where
(Bound<T>, Bound<T>): FromSql<Range<ST>, Pg>,
[src]
(Bound<T>, Bound<T>): FromSql<Range<ST>, Pg>,
fn build_from_row<R: Row<Pg>>(row: &mut R) -> Result<Self>
[src]
const FIELDS_NEEDED: usize
[src]
impl HasSqlType<Range<BigInt>> for Pg
[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
[src]
impl HasSqlType<Range<Date>> for Pg
[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
[src]
impl HasSqlType<Range<Integer>> for Pg
[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
[src]
impl HasSqlType<Range<Numeric>> for Pg
[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
[src]
impl HasSqlType<Range<Timestamp>> for Pg
[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
[src]
impl HasSqlType<Range<Timestamptz>> for Pg
[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
[src]
impl<ST> NotNull for Range<ST>
[src]
impl<ST: QueryId> QueryId for Range<ST>
[src]
type QueryId = Range<<ST as QueryId>::QueryId>
A type which uniquely represents Self
in a SQL query. Read more
const HAS_STATIC_QUERY_ID: bool
[src]
fn query_id() -> Option<TypeId>
[src]
impl<T, ST> Queryable<Range<ST>, Pg> for (Bound<T>, Bound<T>) where
T: FromSql<ST, Pg> + Queryable<ST, Pg>,
[src]
T: FromSql<ST, Pg> + Queryable<ST, Pg>,
impl<ST> SingleValue for Range<ST>
[src]
impl<ST, T> ToSql<Range<ST>, Pg> for (Bound<T>, Bound<T>) where
T: ToSql<ST, Pg>,
[src]
T: ToSql<ST, Pg>,
Auto Trait Implementations
impl<ST> RefUnwindSafe for Range<ST> where
ST: RefUnwindSafe,
ST: RefUnwindSafe,
impl<ST> Send for Range<ST> where
ST: Send,
ST: Send,
impl<ST> Sync for Range<ST> where
ST: Sync,
ST: Sync,
impl<ST> Unpin for Range<ST> where
ST: Unpin,
ST: Unpin,
impl<ST> UnwindSafe for Range<ST> where
ST: UnwindSafe,
ST: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoNullable for T where
T: NotNull,
[src]
T: NotNull,
impl<T> IntoSql for T
[src]
fn into_sql<T>(self) -> AsExprOf<Self, T> where
Self: AsExpression<T> + Sized,
[src]
Self: AsExpression<T> + Sized,
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,