chrono icon indicating copy to clipboard operation
chrono copied to clipboard

No serde impls for Months

Open MrFaul opened this issue 1 year ago • 1 comments

error[E0277]: the trait bound `chrono::Months: _::_serde::Serialize` is not satisfied
    --> src\main.rs:5:10
     |
5    | #[derive(Serialize, Deserialize, Debug)]
     |          ^^^^^^^^^ the trait `_::_serde::Serialize` is not implemented for `chrono::Months`

What the compiler said... I'm probably the only person in the world using that enum in that way 😅

MrFaul avatar Jul 23 '24 08:07 MrFaul

This isn't even an enum... It is fairly niche and I think adding the Months type may have been a mistake so I'm not sure we'll want to add more API surface to it.

djc avatar Jul 23 '24 08:07 djc