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_ encrypted_ note - Serde
withmodule forOption<(u32, u32, Vec<u8>)>fields used by theSharedEncryptedNote/PrivateEncryptedNotetype aliases on token transitions. - json_
safe_ option_ i64 - Serde
withmodule forOption<i64>fields. - json_
safe_ option_ string_ u64_ tuple - Serde
withmodule forOption<(String, u64)>fields. - json_
safe_ option_ u64 - Serde
withmodule forOption<u64>fields. - json_
safe_ u64 - Serde
withmodule foru64fields. - json_
safe_ u128 - Serde
withmodule foru128fields. - json_
safe_ u128_ content - Serde
withmodule for au128field that is buffered through serde’sContentenum — i.e. a field of an internally-tagged (#[serde(tag = "…")]) enum or struct.