Approximate in-memory byte footprint of this value’s payload,
used by the ferrule-sql size guards (max_cell_bytes /
max_row_bytes / max_total_buffered_bytes) to fail fast on a
pathological cell before it is retained.
This counts the bytes the payload actually owns on the heap (the
String / Bytes / Json / nested-Array contents), not the
fixed 24-ish-byte Value enum discriminant+inline scalars. The
goal is a cheap, monotonic proxy for “how much memory does
keeping this cell cost” — exact accounting is unnecessary because
the guards are coarse ceilings, not an RSS budget. Json is
measured by its serialized length (a tight upper bound on the
retained serde_json::Value tree); Array recurses so a deeply
nested array is charged for its whole subtree.