Why this fires¶
Generic parse::<T>() is a text operation. Its receiver must be str or
bytes, and T must be one of the numeric types supported by the core parser.
Fix it¶
Use parse on text, or choose the domain-specific decoder for structured data:
let port = "8080".parse::<u16>()?
let payload = json.decode(text)