Skip to main content

Module serialization

Module serialization 

Source

Re-exports§

pub use json::safe_integer::json_safe_i64;
pub use json::safe_integer::json_safe_option_i64;
pub use json::safe_integer::json_safe_option_u64;
pub use json::safe_integer::json_safe_u64;
pub use json::JsonSafeFields;

Modules§

json
Compile-safe JSON serialization for large integers (u64/i64).
serde_bytes
Generic serde helper for fixed-size byte arrays [u8; N].
serde_bytes_var
Serde helper for variable-length Vec<u8> byte fields.

Traits§

JsonConvertible
Convert to/from JSON using human-readable serde (Identifier=base58, Bytes=base64).
PlatformDeserializable
PlatformDeserializableFromVersionedStructure
PlatformDeserializableWithBytesLenFromVersionedStructure
PlatformDeserializableWithPotentialValidationFromVersionedStructure
PlatformLimitDeserializableFromVersionedStructure
PlatformMessageSignable
PlatformSerializable
PlatformSerializableWithPlatformVersion
Signable
ValueConvertible

Attribute Macros§

json_safe_fields
Attribute macro that auto-injects #[serde(with = "...")] on fields whose natural serde shape would round-trip badly through JSON / WASM.

Derive Macros§

JsonConvertible
Derive macro that generates impl JsonConvertible for Type {} with compile-time assertions that all inner types implement JsonSafeFields.
ValueConvertible
Derive macro that generates impl ValueConvertible for Type {}.