We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Variants support with so it makes sense to support bound as well. The two commonly go together.
with
bound
#[derive(Serialize, Deserialize)] enum Repro<T> { #[serde(with = "v")] #[serde(bound(serialize = "T: Serialize", deserialize = "T: Deserialize<'de>"))] V(T), }
Currently this fails with:
| | #[derive(Serialize, Deserialize)] | ^^^^^^^^^^^ | = help: message: unknown serde variant attribute `bound`
The text was updated successfully, but these errors were encountered:
Fixed in be7fe2a.
Sorry, something went wrong.
dtolnay
No branches or pull requests
Variants support
with
so it makes sense to supportbound
as well. The two commonly go together.Currently this fails with:
The text was updated successfully, but these errors were encountered: