Skip to main content

Module serde

Module serde 

Source
Expand description

Implementations of serde::Deserialize for object::WafObject and object::WafMap.

This module also provides Limits for applying constraints during deserialization, similar to the PHP extension’s dd_mpack_limits structure.

Structs§

LimitedResult
The result of deserializing with limits.
Limits
Limits applied during deserialization to prevent excessive resource usage.

Constants§

DEFAULT_MAX_DEPTH
Default maximum depth (21 levels).
DEFAULT_MAX_ELEMENTS
Default maximum elements (2048 elements).
DEFAULT_MAX_STRING_LENGTH
Default maximum string length (4096 bytes).

Functions§

deserialize_with_limits
Deserialize a WafObject from a deserializer with the specified limits.