Skip to content
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

Generic serialize/deserialize for well-known types #581

Closed
wants to merge 5 commits into from

Commits on Feb 21, 2023

  1. Rework serde::timestamp and add timestamp::millis

     - Allows serde::timestamp to be used for more common types without
       additional modules.
     - Added serde::timestamp::millis for the cases where greater time
       fidelity is needed in a standardised way (javascript natively
       expects timestamps to be in milliseconds)
     - Included tests for the above
     - Deprecated the timestamp::option module as this achieves the same
       effect seamlessly
     - Maybe expanding this concept to other well-known serde types?
    CaptainMaso committed Feb 21, 2023
    Configuration menu
    Copy the full SHA
    2c52240 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2023

  1. Configuration menu
    Copy the full SHA
    fb84df7 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2023

  1. Configuration menu
    Copy the full SHA
    84073d1 View commit details
    Browse the repository at this point in the history
  2. Use AsWellKnown and FromWellKnown trait instead

     - Replaces intermediate structs
     - Allows for generic serialising/deserialising from a single function
     - Currently implemented for:
        - Timestamp/TimestampMillis
        - T,Option<T>,Vec<T>,[T] (ser only)
    CaptainMaso committed May 18, 2023
    Configuration menu
    Copy the full SHA
    fdb11ea View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8d8e609 View commit details
    Browse the repository at this point in the history