Struct diesel::pg::types::sql_types::Range[][src]

pub struct Range<ST>(_);

The Range SQL type.

This wraps another type to represent a SQL range of that type.

ToSql impls

FromSql impls

Trait Implementations

impl<ST, T> AsExpression<Range<ST>> for (Bound<T>, Bound<T>)[src]

type Expression = SqlBound<Range<ST>, Self>

The expression being returned

impl<'a, ST, T> AsExpression<Range<ST>> for &'a (Bound<T>, Bound<T>)[src]

type Expression = SqlBound<Range<ST>, Self>

The expression being returned

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]

impl<T, ST> FromSqlRow<Range<ST>, Pg> for (Bound<T>, Bound<T>) where
    (Bound<T>, Bound<T>): FromSql<Range<ST>, Pg>, 
[src]

impl HasSqlType<Range<BigInt>> for Pg[src]

impl HasSqlType<Range<Date>> for Pg[src]

impl HasSqlType<Range<Integer>> for Pg[src]

impl HasSqlType<Range<Numeric>> for Pg[src]

impl HasSqlType<Range<Timestamp>> for Pg[src]

impl HasSqlType<Range<Timestamptz>> for Pg[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

impl<T, ST> Queryable<Range<ST>, Pg> for (Bound<T>, Bound<T>) where
    T: FromSql<ST, Pg> + Queryable<ST, Pg>, 
[src]

type Row = Self

The Rust type you’d like to map from. Read more

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]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoNullable for T where
    T: NotNull
[src]

type Nullable = Nullable<T>

The nullable representation of this type. Read more

impl<T> IntoSql for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.