Skip to content
ZOLO / TE843 Type · error

parse source or destination type is unsupported

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. Use a domain-specific decoder (such as `json.decode`) for structured data instead.

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)

Global index

Find your way through Zolo

Try an idea

Start here

9 results

9 results

enespt-br