Skip to main content

check_field_length

Function check_field_length 

Source
fn check_field_length(len: usize, max: usize, field: &str, unit: &str) -> Result
Expand description

Bound a display name or avatar URL by its length budget.

These limits answer M_BAD_JSON at 400, while check_length keeps M_TOO_LARGE for the status text and emoji.