Struct diesel::sql_types::Interval [] [src]

pub struct Interval;

The interval SQL type.

This type is currently only implemented for PostgreSQL.

ToSql impls

FromSql impls

Trait Implementations

impl SqlOrd for Interval
[src]

impl Foldable for Interval
[src]

The SQL type of sum(this_type)

The SQL type of avg(this_type)

impl QueryId for Interval
[src]

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

HAS_STATIC_QUERY_ID: bool = 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 NotNull for Interval
[src]

impl SingleValue for Interval
[src]

impl HasSqlType<Interval> for Pg
[src]

[src]

Fetch the metadata for the given type Read more

[src]

Fetch the metadata for a tuple representing an entire row Read more

impl Debug for Interval
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Interval
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Interval
[src]

impl Default for Interval
[src]

[src]

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

impl<'expr> AsExpression<Interval> for &'expr PgInterval
[src]

The expression being returned

[src]

Perform the conversion

impl<'expr2, 'expr> AsExpression<Interval> for &'expr2 &'expr PgInterval
[src]

The expression being returned

[src]

Perform the conversion

impl AsExpression<Interval> for PgInterval
[src]

The expression being returned

[src]

Perform the conversion

impl ToSql<Interval, Pg> for PgInterval
[src]

[src]

See the trait documentation.

impl FromSql<Interval, Pg> for PgInterval
[src]

[src]

See the trait documentation.

Auto Trait Implementations

impl Send for Interval

impl Sync for Interval