SerializationConfig
This class defines the configuration settings for data serialization, specifically controlling how temporal types, byte sequences, and special floating-point values like infinity and NaN are handled. It serves as a central specification for determining the format and behavior of the serialization process across different data types.
Attributes
| Attribute | Type | Description |
|---|---|---|
| temporal_mode | TemporalMode | Determines the strategy used for serializing date, time, and datetime objects into target formats. |
| bytes_mode | BytesMode | Specifies the encoding format, such as base64 or hex, used when converting raw byte sequences to strings. |
| inf_nan_mode | InfNanMode | Defines how non-finite floating-point values like Infinity and NaN are represented in the serialized output. |
Constructor
Signature
def SerializationConfig(
temporal_mode: TemporalMode,
bytes_mode: BytesMode,
inf_nan_mode: InfNanMode
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| temporal_mode | TemporalMode | The mode to use for temporal data serialization. |
| bytes_mode | BytesMode | The mode to use for bytes data serialization. |
| inf_nan_mode | InfNanMode | The mode to use for infinity and NaN value serialization. |
Signature
def SerializationConfig(
temporal_mode: TemporalMode,
bytes_mode: BytesMode,
inf_nan_mode: InfNanMode
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| temporal_mode | TemporalMode | The strategy used for serializing date and time objects, such as ISO strings or timestamps. |
| bytes_mode | BytesMode | The encoding format used for binary data, typically determining if bytes are represented as base64 or hex strings. |
| inf_nan_mode | InfNanMode | The representation style for Infinity and NaN values to ensure compatibility with the target serialization format. |