Struct block_tools::db::use_diesel::sql_types::Range [−][src]
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<'a, ST, T> AsExpression<Range<ST>> for &'a (Bound<T>, Bound<T>)
[src]
type Expression = Bound<Range<ST>, &'a (Bound<T>, Bound<T>)>
The expression being returned
pub fn as_expression(
self
) -> <&'a (Bound<T>, Bound<T>) as AsExpression<Range<ST>>>::Expression
[src]
self
) -> <&'a (Bound<T>, Bound<T>) as AsExpression<Range<ST>>>::Expression
impl<ST, T> AsExpression<Range<ST>> for (Bound<T>, Bound<T>)
[src]
type Expression = Bound<Range<ST>, (Bound<T>, Bound<T>)>
The expression being returned
pub fn as_expression(
self
) -> <(Bound<T>, Bound<T>) as AsExpression<Range<ST>>>::Expression
[src]
self
) -> <(Bound<T>, Bound<T>) as AsExpression<Range<ST>>>::Expression
impl<ST> Clone for Range<ST> where
ST: Clone,
[src]
ST: Clone,
impl<ST> Copy for Range<ST> where
ST: Copy,
[src]
ST: Copy,
impl<ST> Debug for Range<ST> where
ST: Debug,
[src]
ST: Debug,
impl<ST> Default for Range<ST> where
ST: Default,
[src]
ST: Default,
impl<T, ST> FromSql<Range<ST>, Pg> for (Bound<T>, Bound<T>) where
T: FromSql<ST, Pg>,
[src]
T: FromSql<ST, Pg>,
pub fn from_sql(
bytes: Option<&[u8]>
) -> Result<(Bound<T>, Bound<T>), Box<dyn Error + 'static + Send + Sync, Global>>
[src]
bytes: Option<&[u8]>
) -> Result<(Bound<T>, Bound<T>), Box<dyn Error + 'static + Send + Sync, Global>>
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>,
pub fn build_from_row<R>(
row: &mut R
) -> Result<(Bound<T>, Bound<T>), Box<dyn Error + 'static + Send + Sync, Global>> where
R: Row<Pg>,
[src]
row: &mut R
) -> Result<(Bound<T>, Bound<T>), Box<dyn Error + 'static + Send + Sync, Global>> where
R: Row<Pg>,
pub const FIELDS_NEEDED: usize
[src]
impl HasSqlType<Range<BigInt>> for Pg
[src]
pub fn metadata(&PgMetadataLookup) -> PgTypeMetadata
[src]
impl HasSqlType<Range<Date>> for Pg
[src]
pub fn metadata(&PgMetadataLookup) -> PgTypeMetadata
[src]
impl HasSqlType<Range<Integer>> for Pg
[src]
pub fn metadata(&PgMetadataLookup) -> PgTypeMetadata
[src]
impl HasSqlType<Range<Numeric>> for Pg
[src]
pub fn metadata(&PgMetadataLookup) -> PgTypeMetadata
[src]
impl HasSqlType<Range<Timestamp>> for Pg
[src]
pub fn metadata(&PgMetadataLookup) -> PgTypeMetadata
[src]
impl HasSqlType<Range<Timestamptz>> for Pg
[src]
pub fn metadata(&PgMetadataLookup) -> PgTypeMetadata
[src]
impl<ST> NotNull for Range<ST>
[src]
impl<ST> QueryId for Range<ST> where
ST: QueryId,
[src]
ST: QueryId,
type QueryId = Range<<ST as QueryId>::QueryId>
A type which uniquely represents Self
in a SQL query. Read more
pub const HAS_STATIC_QUERY_ID: bool
[src]
pub 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>,
type Row = (Bound<T>, Bound<T>)
The Rust type you'd like to map from. Read more
pub fn build(row: (Bound<T>, Bound<T>)) -> (Bound<T>, Bound<T>)
[src]
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,
[src]
ST: RefUnwindSafe,
impl<ST> Send for Range<ST> where
ST: Send,
[src]
ST: Send,
impl<ST> Sync for Range<ST> where
ST: Sync,
[src]
ST: Sync,
impl<ST> Unpin for Range<ST> where
ST: Unpin,
[src]
ST: Unpin,
impl<ST> UnwindSafe for Range<ST> where
ST: UnwindSafe,
[src]
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,
pub 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]
pub fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
pub fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,