Expand description
Serde with modules for bare u64/i64 fields and their Option variants.
These are automatically added by the #[json_safe_fields] attribute macro.
You should not normally need to reference them directly.
§Behavior
- JSON (
is_human_readable() == true): values >MAX_SAFE_INTEGER(2^53 - 1) are serialized as strings. Deserialization accepts both numbers and strings. - platform_value / bincode (
is_human_readable() == false): native integer representation, no transformation.
§Available modules
json_safe_u64— foru64fieldsjson_safe_i64— fori64fieldsjson_safe_option_u64— forOption<u64>fieldsjson_safe_option_i64— forOption<i64>fields
Modules§
- json_
safe_ i64 - Serde
withmodule fori64fields. - json_
safe_ option_ i64 - Serde
withmodule forOption<i64>fields. - json_
safe_ option_ u64 - Serde
withmodule forOption<u64>fields. - json_
safe_ u64 - Serde
withmodule foru64fields.