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<T, ST> Queryable<Range<ST>, Pg> for (Bound<T>, Bound<T>) where
    T: FromSql<ST, Pg> + Queryable<ST, Pg>, 
[src]

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

[src]

Construct an instance of this type

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

The expression being returned

[src]

Perform the conversion

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

The expression being returned

[src]

Perform the conversion

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

[src]

See the trait documentation.

FIELDS_NEEDED: usize = 1

The number of fields that this type will consume. Must be equal to the number of times you would call row.take() in build_from_row Read more

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

[src]

See the trait documentation.

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

[src]

See the trait documentation.

impl<ST: QueryId> QueryId for Range<ST>
[src]

A type which uniquely represents Self in a SQL query. Read more

HAS_STATIC_QUERY_ID: bool = <ST as QueryId>::HAS_STATIC_QUERY_ID && true

Can the SQL generated by Self be uniquely identified by its type? Read more

[src]

Returns the type id of Self::QueryId if Self::HAS_STATIC_QUERY_ID. Returns None otherwise. Read more

impl<ST> NotNull for Range<ST>
[src]

impl<ST> SingleValue for Range<ST>
[src]

impl<ST: Debug> Debug for Range<ST>
[src]

[src]

Formats the value using the given formatter. Read more

impl<ST: Clone> Clone for Range<ST>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<ST: Copy> Copy for Range<ST>
[src]

impl<ST: Default> Default for Range<ST>
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<ST> Send for Range<ST> where
    ST: Send

impl<ST> Sync for Range<ST> where
    ST: Sync