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
(Bound<T>, Bound<T>)for anyTwhich implementsToSql<ST>.
FromSql impls
(Bound<T>, Bound<T>)for anyTwhich implementsFromSql<ST>.
Trait Implementations
impl<T, ST> Queryable<Range<ST>, Pg> for (Bound<T>, Bound<T>) where
T: FromSql<ST, Pg> + Queryable<ST, Pg>, [src]
impl<T, ST> Queryable<Range<ST>, Pg> for (Bound<T>, Bound<T>) where
T: FromSql<ST, Pg> + Queryable<ST, Pg>, type Row = Self
The Rust type you'd like to map from. Read more
fn build(row: Self) -> Self[src]
fn build(row: Self) -> SelfConstruct an instance of this type
impl<ST, T> AsExpression<Range<ST>> for (Bound<T>, Bound<T>)[src]
impl<ST, T> AsExpression<Range<ST>> for (Bound<T>, Bound<T>)type Expression = SqlBound<Range<ST>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<'a, ST, T> AsExpression<Range<ST>> for &'a (Bound<T>, Bound<T>)[src]
impl<'a, ST, T> AsExpression<Range<ST>> for &'a (Bound<T>, Bound<T>)type Expression = SqlBound<Range<ST>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<T, ST> FromSqlRow<Range<ST>, Pg> for (Bound<T>, Bound<T>) where
(Bound<T>, Bound<T>): FromSql<Range<ST>, Pg>, [src]
impl<T, ST> FromSqlRow<Range<ST>, Pg> for (Bound<T>, Bound<T>) where
(Bound<T>, Bound<T>): FromSql<Range<ST>, Pg>, fn build_from_row<R: Row<Pg>>(row: &mut R) -> Result<Self>[src]
fn build_from_row<R: Row<Pg>>(row: &mut R) -> Result<Self>See the trait documentation.
const FIELDS_NEEDED: usize
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]
impl<T, ST> FromSql<Range<ST>, Pg> for (Bound<T>, Bound<T>) where
T: FromSql<ST, Pg>, impl<ST, T> ToSql<Range<ST>, Pg> for (Bound<T>, Bound<T>) where
T: ToSql<ST, Pg>, [src]
impl<ST, T> ToSql<Range<ST>, Pg> for (Bound<T>, Bound<T>) where
T: ToSql<ST, Pg>, impl<ST: QueryId> QueryId for Range<ST>[src]
impl<ST: QueryId> QueryId for Range<ST>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
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
fn query_id() -> Option<TypeId>[src]
fn query_id() -> Option<TypeId>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> NotNull for Range<ST>impl<ST> SingleValue for Range<ST>[src]
impl<ST> SingleValue for Range<ST>impl<ST: Debug> Debug for Range<ST>[src]
impl<ST: Debug> Debug for Range<ST>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<ST: Clone> Clone for Range<ST>[src]
impl<ST: Clone> Clone for Range<ST>fn clone(&self) -> Range<ST>[src]
fn clone(&self) -> Range<ST>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<ST: Copy> Copy for Range<ST>[src]
impl<ST: Copy> Copy for Range<ST>impl<ST: Default> Default for Range<ST>[src]
impl<ST: Default> Default for Range<ST>