Struct diesel::data_types::PgTimestamp [] [src]

pub struct PgTimestamp(pub i64);

Timestamps are represented in Postgres as a 32 bit signed integer representing the number of microseconds since January 1st 2000. This struct is a dumb wrapper type, meant only to indicate the integer's meaning.

Trait Implementations

impl Ord for PgTimestamp
[src]

fn cmp(&self, __arg_0: &PgTimestamp) -> Ordering

This method returns an Ordering between self and other. Read more

impl PartialOrd for PgTimestamp
[src]

fn partial_cmp(&self, __arg_0: &PgTimestamp) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more

fn lt(&self, __arg_0: &PgTimestamp) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more

fn le(&self, __arg_0: &PgTimestamp) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

fn gt(&self, __arg_0: &PgTimestamp) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more

fn ge(&self, __arg_0: &PgTimestamp) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Eq for PgTimestamp
[src]

impl PartialEq for PgTimestamp
[src]

fn eq(&self, __arg_0: &PgTimestamp) -> bool

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

fn ne(&self, __arg_0: &PgTimestamp) -> bool

This method tests for !=.

impl Copy for PgTimestamp
[src]

impl Clone for PgTimestamp
[src]

fn clone(&self) -> PgTimestamp

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for PgTimestamp
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Queriable<Timestamp> for PgTimestamp
[src]

type Row = Self

fn build(row: Self::Row) -> Self

impl<'a> AsExpression<Timestamp> for PgTimestamp
[src]

type Expression = Bound<Timestamp, Self>

fn as_expression(self) -> Self::Expression

impl<'a: 'expr, 'expr> AsExpression<Timestamp> for &'expr PgTimestamp
[src]

type Expression = Bound<Timestamp, Self>

fn as_expression(self) -> Self::Expression

impl<'a> AsExpression<Nullable<Timestamp>> for PgTimestamp
[src]

type Expression = Bound<Nullable<Timestamp>, Self>

fn as_expression(self) -> Self::Expression

impl<'a: 'expr, 'expr> AsExpression<Nullable<Timestamp>> for &'a PgTimestamp
[src]

type Expression = Bound<Nullable<Timestamp>, Self>

fn as_expression(self) -> Self::Expression

impl<'a> ToSql<Nullable<Timestamp>> for PgTimestamp
[src]

fn to_sql<W: Write>(&self, out: &mut W) -> Result<IsNullBox<Error>>

impl ToSql<Timestamp> for PgTimestamp
[src]

fn to_sql<W: Write>(&self, out: &mut W) -> Result<IsNullBox<Error>>

impl FromSql<Timestamp> for PgTimestamp
[src]

fn from_sql(bytes: Option<&[u8]>) -> Result<Self, Box<Error>>