pub fn check_string_cap(
value: &str,
field: &str,
max: usize,
) -> Result<(), String>Expand description
Length-cap any free-form string field to DEFAULT_STRING_CAP bytes (256), unless
a per-field override is documented in the field’s spec entry.