[][src]Crate diesel_chrono_duration

diesel-chrono-duration

This crate implements storage functionality for the chrono::Duration type. It could be included into the diesel itself but its policy does not allow that.

Usage

And add this to your root file (in rust 2015 edition):

extern crate diesel_chrono_duration;

In rust 2018 edition you don't need to specify the extern crate thing. Then use the ChronoDurationProxy type instead of vanilla chrono::Duration.

Structs

ChronoDurationProxy

A proxy type for which the diesel traits are implemented. Use this type whenever you want to operate with chrono::Duration.