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
Could it be like #[aliases], where to write it once, and it's consistently recognized as serde_json::Value?
Unfortunately this is not possible at the moment. This needs a global registry for the type aliases that is available for the macro compile process. This would need some experimenting in order to find the right solution. This is not straight forward to implement to my reckoning, yet the support would be quite beneficial for the library and the users. Definitely something that can be investigated in future.
juhaku
changed the title
Allow alias for serde_json::Value
Allow alias for serde_json::Value: Gobal Rusts Type Alias registry
Nov 8, 2023
Hello.
Instead of using
serde_json::Value
directly, we added an aliasJson
forserde_json::Value
.But the
Json
won't be recognized asserde_json::Value
.This would make it recognizable, but that doesn't make much sense.
Could it be like
#[aliases]
, where to write it once, and it's consistently recognized asserde_json::Value
?The text was updated successfully, but these errors were encountered: