Struct diesel::pg::data_types::PgInterval [] [src]

pub struct PgInterval {
    pub microseconds: i64,
    pub days: i32,
    pub months: i32,
}

Intervals in Postgres are separated into 3 parts. A 64 bit integer representing time in microseconds, a 32 bit integer representing number of minutes, and a 32 bit integer representing number of months. This struct is a dumb wrapper type, meant only to indicate the meaning of these parts.

Fields

Methods

impl PgInterval
[src]

Trait Implementations

impl Debug for PgInterval
[src]

Formats the value using the given formatter.

impl Clone for PgInterval
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for PgInterval
[src]

impl PartialEq for PgInterval
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for PgInterval
[src]

impl<DB> FromSqlRow<Interval, DB> for PgInterval where DB: Backend + HasSqlType<Interval>, PgInterval: FromSql<Interval, DB>
[src]

impl<DB> Queryable<Interval, DB> for PgInterval where DB: Backend + HasSqlType<Interval>, PgInterval: FromSqlRow<Interval, DB>
[src]

impl<'a> AsExpression<Interval> for PgInterval
[src]

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

impl<'a> AsExpression<Nullable<Interval>> for PgInterval
[src]

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

impl<'a, DB> ToSql<Nullable<Interval>, DB> for PgInterval where DB: Backend + HasSqlType<Interval>, PgInterval: ToSql<Interval, DB>
[src]

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

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

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

impl Add<PgInterval> for PgInterval
[src]

The resulting type after applying the + operator

The method for the + operator