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
the trait bound `syn::ExprPath: darling::FromMeta` is not satisfied
required because of the requirements on the impl of `darling::FromMeta` for `std::option::Option<syn::ExprPath>`
Use case: e.g. serde uses ExprPath to specify a function to apply to fields in certain actions (serialize_with). I would like to do something similar. syn::Path does not allow to use generics inside the path.
Is there another way to solve this? Can FromMeta be implemented for it?
The text was updated successfully, but these errors were encountered:
Hi!
Darling allows this nicely:
But the same is not possible with
ExprPath
, asFromMeta
is not implemented for it:Use case: e.g. serde uses
ExprPath
to specify a function to apply to fields in certain actions (serialize_with
). I would like to do something similar.syn::Path
does not allow to use generics inside the path.Is there another way to solve this? Can
FromMeta
be implemented for it?The text was updated successfully, but these errors were encountered: