-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
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
Mapping Serialiser #57
Comments
Need to figure out how to deal with things like It'd be nice to keep things consistent, but also simple, it'd be dumb to invent a new |
There've been a bunch of commits in this space in the last few days. Things are coming along nicely. The basic design is:
|
The mapping design needs to be tidied up. It makers sense to keep mapping for core types together with the type impl, but for an end-user, the mapping should all be collected in a single place. Stick the contents of |
This is looking pretty good, the rest is up to #59 to make it easy to derive the mapping serialisation. |
Create a trait for getting the mapping configuration for some
struct
as JSON, follow a similar idea toserde
; we visit the fields on the given struct, and build up a mapping as we go.For example:
Could be compiled to something like:
The result of
map
would be like:The text was updated successfully, but these errors were encountered: