Setimp.must_obj: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/setimp.bend as Setimp Lines 128-135 of cswap-bend-cli@0.1.0.0/setimp.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/setimp.bend&start_line=128&end_line=135 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json def must_obj(r: Result<&2, &2, String, Json.Json>) -> Result<&2, &2, String, Json.Json>: match r: case Done{Json.JObj{f}}: Done{Json.JObj{f}} case Done{x}: Fail{"the settings document must be a mapping of keys to values"} case Fail{e}: Fail{e} Uses (3): 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/json.bend&name=Json