Closed ieow closed 3 years ago
Hi, is there any datetime example ?
use chrono::NaiveDateTime::DateTime; #[model] #[derive(Debug, Serialize, Deserialize, Clone, Default )] pub struct Voucher { pub createAt : DateTime<Local>, pub optionAt : Option<DateTime<Local>>, }
I try code struct above, it complain about error[E0277]: the trait boundchrono::DateTime: ToSqlis not satisfied
error[E0277]: the trait bound
is not satisfied
using crate : butane 0.3.0 chrono 0.4.19
any pointer would be great help!
Just found example here https://github.com/Electron100/butane/blob/master/butane/tests/common/blog.rs
Hi, is there any datetime example ?
I try code struct above, it complain about: ToSql
error[E0277]: the trait bound
chrono::DateTimeis not satisfied
using crate : butane 0.3.0 chrono 0.4.19
any pointer would be great help!