pub trait DateConverter {
    // Required methods
    fn to_date(&self, tz: Tz) -> ValueRef<'static>;
    fn get_stamp(source: Value) -> Self;
    fn date_type() -> SqlType;

    // Provided method
    fn get_days(date: NaiveDate) -> u16 { ... }
}

Required Methods§

source

fn to_date(&self, tz: Tz) -> ValueRef<'static>

source

fn get_stamp(source: Value) -> Self

source

fn date_type() -> SqlType

Provided Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl DateConverter for u16

source§

fn to_date(&self, _: Tz) -> ValueRef<'static>

source§

fn get_stamp(source: Value) -> Self

source§

fn date_type() -> SqlType

source§

impl DateConverter for u32

source§

fn to_date(&self, tz: Tz) -> ValueRef<'static>

source§

fn get_stamp(source: Value) -> Self

source§

fn date_type() -> SqlType

Implementors§