Rpc.parse_req: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/rpc.bend as Rpc Lines 29-36 of cswap-bend-cli@0.1.0.0/rpc.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/rpc.bend&start_line=29&end_line=36 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json import cswap-bend-cli@0.1.0.0/fmt/out.bend as O import cswap-bend-cli@0.1.0.0/fmt/yaml.bend as Yaml import cswap-bend-cli@0.1.0.0/fmt/toon.bend as Toon def parse_req(f: O.Fmt, +msg: String) -> Result<&2, &2, String, Json.Json>: match f: case O.FYaml{}: Yaml.parse(msg) case O.FToon{}: Toon.parse(msg) case _: Json.parse(msg) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fmt/out.bend&name=Fmt https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fmt/toon.bend&name=parse https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fmt/yaml.bend&name=parse https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=parse