Skip to main content

Module cbor_ext

Module cbor_ext 

Source
Expand description

Convenience accessors for ciborium::Value that mirror the muscle-memory API of serde_json::Value.

ciborium’s native Value already provides as_text, as_integer, as_float, as_array, as_map, as_bytes and friends. What it lacks — and what code reading typed records reaches for constantly — are the shorter names (as_str, as_i64) and string-keyed Map lookup. This trait fills exactly that gap; nothing more.

Traits§

CborValueExt