Migrate.decode.shape: def of bend-kit-migrate@0.3.0.0 Import: import bend-kit-migrate@0.3.0.0/migrate.bend as Migrate Lines 613-619 of bend-kit-migrate@0.3.0.0/migrate.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-migrate@0.3.0.0/migrate.bend&start_line=613&end_line=619 import Base import bend-kit-json@0.7.0.0/json.bend as Json # The record an object describes, before the business rules. def decode.shape(v: Json.Val) -> Result<&1, &1, Error, Record>: match v: case Json.Obj{kvs}: Result.bind(&1, &1, Error, Slots, Record, collect(kvs, Done{Slots.empty()}), build) case _: Fail{Malformed{}} Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result.bind https://jend.leeeet.dev/definition.txt?path=bend-kit-json@0.7.0.0/json.bend&name=Val https://jend.leeeet.dev/definition.txt?path=bend-kit-migrate@0.3.0.0/migrate.bend&name=Error https://jend.leeeet.dev/definition.txt?path=bend-kit-migrate@0.3.0.0/migrate.bend&name=Record https://jend.leeeet.dev/definition.txt?path=bend-kit-migrate@0.3.0.0/migrate.bend&name=Slots https://jend.leeeet.dev/definition.txt?path=bend-kit-migrate@0.3.0.0/migrate.bend&name=Slots.empty https://jend.leeeet.dev/definition.txt?path=bend-kit-migrate@0.3.0.0/migrate.bend&name=build https://jend.leeeet.dev/definition.txt?path=bend-kit-migrate@0.3.0.0/migrate.bend&name=collect