Struct diesel::sql_types::Interval
[−]
[src]
pub struct Interval;
The interval SQL type.
This type is currently only implemented for PostgreSQL.
ToSql
impls
PgInterval
which can be constructed usingIntervalDsl
FromSql
impls
PgInterval
which can be constructed usingIntervalDsl
Trait Implementations
impl SqlOrd for Interval
[src]
impl Foldable for Interval
[src]
type Sum = Nullable<Interval>
The SQL type of sum(this_type)
type Avg = Nullable<Interval>
The SQL type of avg(this_type)
impl QueryId for Interval
[src]
type QueryId = Interval
A type which uniquely represents Self
in a SQL query. Read more
const HAS_STATIC_QUERY_ID: bool
HAS_STATIC_QUERY_ID: bool = true
Can the SQL generated by Self
be uniquely identified by its type? Read more
fn query_id() -> Option<TypeId>
[src]
Returns the type id of Self::QueryId
if Self::HAS_STATIC_QUERY_ID
. Returns None
otherwise. Read more
impl NotNull for Interval
[src]
impl SingleValue for Interval
[src]
impl HasSqlType<Interval> for Pg
[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
[src]
Fetch the metadata for the given type Read more
fn row_metadata(
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
[src]
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
Fetch the metadata for a tuple representing an entire row Read more
impl Debug for Interval
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Interval
[src]
fn clone(&self) -> Interval
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Interval
[src]
impl Default for Interval
[src]
impl<'expr> AsExpression<Interval> for &'expr PgInterval
[src]
type Expression = Bound<Interval, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
Perform the conversion
impl<'expr2, 'expr> AsExpression<Interval> for &'expr2 &'expr PgInterval
[src]
type Expression = Bound<Interval, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
Perform the conversion
impl AsExpression<Interval> for PgInterval
[src]
type Expression = Bound<Interval, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
Perform the conversion