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
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:
Currently serde is supported under the
experimental-serde
feature flag. The current support includes the following Ion data type to serde data type mappings:There are still some TODOs left for the complete support of serde:
Following are some more enhancement issues:
from_reader
/to_writer
, not justfrom_ion
/to_pretty
/to_string
/to_binary
#712The text was updated successfully, but these errors were encountered: