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

Implement Serialize on std::ops::Bound #1276

Closed
Deedasmi opened this issue May 21, 2018 · 3 comments
Closed

Implement Serialize on std::ops::Bound #1276

Deedasmi opened this issue May 21, 2018 · 3 comments

Comments

@Deedasmi
Copy link

Would it be possible to implement Serialize on bounds where Bound<T: Serialize>?

@dtolnay
Copy link
Member

dtolnay commented May 21, 2018

It is possible. Could you say more about your use case that requires this? Do you have a preference for how Bound would be represented?

@Deedasmi
Copy link
Author

Diesel deserialize Postgres TsTzRanges as (Bound<DateTime>, Bound<DateTime>).

Likely follow the same conventions as other Enums, Object("Included": t.serialize());

@dtolnay
Copy link
Member

dtolnay commented Feb 2, 2019

Implemented in #1466.

@dtolnay dtolnay closed this as completed Feb 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants