You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an argument is generic (or is an associated type) that is bounded on serde::Deserialize (or serde::DeserializeOwned), the code generated by serde will add extra unnecessary bounds on specifically _serde::Deserialize<'de>, even when the type would already have bounds on eg. serde::DeserializeOwned.
As stated in their issue, serde-rs/serde#1296, one workaround is to attach some serde attributes that would prevent it from happening.
So for this, it should be possible to forward attributes to be attached to the fields on the Args structure definition. The best place for this is probably on the method parameters themselves.
The text was updated successfully, but these errors were encountered:
swfsql
changed the title
Allow forwarding parameter attributes as Args fields
Allow forwarding parameter attributes as Args fields attributes
Oct 19, 2021
When an argument is generic (or is an associated type) that is bounded on
serde::Deserialize
(orserde::DeserializeOwned
), the code generated by serde will add extra unnecessary bounds on specifically_serde::Deserialize<'de>
, even when the type would already have bounds on eg.serde::DeserializeOwned
.As stated in their issue, serde-rs/serde#1296, one workaround is to attach some serde attributes that would prevent it from happening.
So for this, it should be possible to forward attributes to be attached to the fields on the
Args
structure definition. The best place for this is probably on the method parameters themselves.The text was updated successfully, but these errors were encountered: