Skip to main content

MAX_DEPTH

Constant MAX_DEPTH 

Source
pub const MAX_DEPTH: usize = 16;
Expand description

Maximum bracket nesting depth accepted in a query key.

a[b][c] is depth 3. Anything deeper is rejected as a decode error rather than allocated, so a hostile query string cannot drive unbounded tree construction. Real nested query arguments are one or two levels deep.