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

Serde feature complete support #736

Open
1 of 3 tasks
desaikd opened this issue Apr 4, 2024 · 0 comments
Open
1 of 3 tasks

Serde feature complete support #736

desaikd opened this issue Apr 4, 2024 · 0 comments
Labels
enhancement New feature or request serde

Comments

@desaikd
Copy link
Contributor

desaikd commented Apr 4, 2024

Currently serde is supported under the experimental-serde feature flag. The current support includes the following Ion data type to serde data type mappings:

| Ion data type | Rust data structure                  | Serde data type                                       |
|---------------|--------------------------------------|-------------------------------------------------------|
| int           | u64, i64, u32, i32, u16, i16, u8, i8 | u64, i64, u32, i32, u16, i16, u8, i8                  |
| float         | f32, f64                             | f32, f64                                              |
| decimal       | Decimal(Ion Element API)             | newtype_struct (with name as `$__ion_rs_decimal__`)   |
| timestamp     | Timestamp(Ion Element API)           | newtype_struct (with name as `$__ion_rs_timestamp__`) |
| blob          | byte array                           | byte array                                            |
| clob          | byte array                           | byte array                                            |
| bool          | bool                                 | bool                                                  |
| symbol        | string                               | string                                                |
| string        | string                               | string                                                |
| struct        | struct                               | struct                                                |
| list          | vector                               | seq                                                   |
| null          | None                                 | unit                                                  |

There are still some TODOs left for the complete support of serde:

Following are some more enhancement issues:

@desaikd desaikd added enhancement New feature or request serde labels Apr 4, 2024
@jobarr-amzn jobarr-amzn changed the title Serde feature complet support Serde feature complete support Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request serde
Projects
None yet
Development

No branches or pull requests

1 participant