Skip to main content

TimestampRelativeExt

Trait TimestampRelativeExt 

Source
pub trait TimestampRelativeExt: Sized + Expression<Type = Timestamp> {
    // Provided methods
    fn past(self) -> Binary<Lt, Self, Now> { ... }
    fn future(self) -> Binary<Gt, Self, Now> { ... }
    fn today(self) -> Binary<Eq, DateExtract<Self>, CurrentDate> { ... }
    fn before_today(self) -> Binary<Lt, DateExtract<Self>, CurrentDate> { ... }
    fn after_today(self) -> Binary<Gt, DateExtract<Self>, CurrentDate> { ... }
}

Provided Methods§

Source

fn past(self) -> Binary<Lt, Self, Now>

Source

fn future(self) -> Binary<Gt, Self, Now>

Source

fn today(self) -> Binary<Eq, DateExtract<Self>, CurrentDate>

Source

fn before_today(self) -> Binary<Lt, DateExtract<Self>, CurrentDate>

Source

fn after_today(self) -> Binary<Gt, DateExtract<Self>, CurrentDate>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<E> TimestampRelativeExt for E
where E: Expression<Type = Timestamp>,