Status.entry_json: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/daemon/status.bend as Status Lines 57-60 of cswap-bend-cli@0.1.0.0/daemon/status.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/daemon/status.bend&start_line=57&end_line=60 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json def entry_json(e: Entry) -> Json.Json: match e: case Entry{s, p5, p7, fa, bu, le}: Json.JObj{f("pct_5h", opt_pct(p5), f("pct_7d", opt_pct(p7), f("fetched_at", opt_str(fa), f("backoff_until", opt_str(bu), f("last_error", opt_str(le), Json.JNil{})))))} Uses (5): https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/status.bend&name=Entry https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/status.bend&name=f https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/status.bend&name=opt_pct https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/status.bend&name=opt_str https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=Json