Expand description
Canonical serialization and deserialization of Fuel types.
This module provides the Serialize
and Deserialize
traits, which
allow for automatic serialization and deserialization of Fuel types.
Enums§
- Error when serializing or deserializing.
Constants§
- The data of each field should be aligned to 64 bits.
- To protect against malicious large inputs, vector size is limited when decoding.
Traits§
- Allows deserialize the type from the
Input
. https://github.com/FuelLabs/fuel-specs/blob/master/specs/protocol/tx_format.md#transaction - Allows reading of data into a slice.
- Allows writing of data.
- Allows serialize the type into the
Output
. https://github.com/FuelLabs/fuel-specs/blob/master/specs/protocol/tx_format.md#transaction
Functions§
- Size after alignment. Saturates on overflow.
Derive Macros§
- Derives
Deserialize
trait for the givenstruct
orenum
. - Derives
Serialize
trait for the givenstruct
orenum
.