Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No serde impls for Months #1602

Open
MrFaul opened this issue Jul 23, 2024 · 1 comment
Open

No serde impls for Months #1602

MrFaul opened this issue Jul 23, 2024 · 1 comment

Comments

@MrFaul
Copy link

MrFaul commented Jul 23, 2024

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 😅

@djc djc changed the title BUG: Months enum doesn't serialize No serde impls for Months Jul 23, 2024
@djc
Copy link
Member

djc commented Jul 23, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants