A string of at most N UTF-8 encoded bytes.
N
max_length is a phantom type-level annotation: it does not exist at runtime, and any string is assignable. Note the bound counts encoded bytes, not code points. The codec enforces the bound when encoding and decoding.
max_length
string
A string of at most
NUTF-8 encoded bytes.max_lengthis a phantom type-level annotation: it does not exist at runtime, and anystringis assignable. Note the bound counts encoded bytes, not code points. The codec enforces the bound when encoding and decoding.