TedDriggs / darling

A Rust proc-macro attribute parser
MIT License
983 stars 66 forks source link

Support `#[darling(with = ...)]` on the `data` field #299

Closed TedDriggs closed 2 months ago

TedDriggs commented 2 months ago

This makes the forwarded field data significantly more flexible, as it allows the receiver to choose whatever field type is best suited to the receiver's use-case. This also makes body validation much easier, by allowing for a with function that does validation after parsing.