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_u128;
pub use json::safe_integer::json_safe_u128_content;
pub use json::safe_integer::json_safe_u64;
pub use json::JsonSafeFields;

Modules§

dashcore
Serde with wrappers for types owned by external (dashcore) crates.
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, binary = base64).
PlatformDeserializable
PlatformDeserializableFromVersionedStructure
PlatformDeserializableWithBytesLenFromVersionedStructure
PlatformDeserializableWithPotentialValidationFromVersionedStructure
PlatformLimitDeserializableFromVersionedStructure
PlatformMessageSignable
PlatformSerializable
PlatformSerializableWithPlatformVersion
Signable
ValueConvertible
Convert to/from platform_value::Value using non-human-readable serde (Identifier = Value::Identifier(bytes), binary = Value::Bytes(bytes), raw byte fields preserved without stringification).

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 {}.