Structsยง
- Variant
Ref - Borrowed value of the
varianttype. - Variant
Val - Owned value of the
varianttype.
Enumsยง
- Path
Token ๐
Constantsยง
- CANONICAL_
NAN_ ๐F32 - CANONICAL_
NAN_ ๐F64 - METADATA_
LEN_ ๐SIZE
Functionsยง
- append_
datum_ ๐value - append_
decimal ๐ - append_
float64 ๐ - append_
json_ ๐value - append_
struct ๐ - append_
variant_ ๐value - Re-encodes a variant value with the canonical builder, normalizing floats to their canonical bit patterns.
- canonical_
builder ๐ - collect_
datum_ ๐field_ names - collect_
json_ ๐field_ names - collect_
variant_ ๐field_ names - collect_
variant_ ๐field_ names_ inner - Collects object field names for the canonical dictionary.
- contains_
non_ ๐finite_ float - Returns whether the variant contains a non-finite float. Read errors also count so that the lossy path, which reports them, is taken.
- expect_
serialized_ ๐value - jsonb_
to_ ๐json_ value - Parses a jsonb value through its text form. The round trip is deliberate:
serde_jsonโs parser enforces a nesting limit, while walkingjsonbbdirectly would recurse without a bound. - non_
finite_ ๐to_ json - normalize_
double ๐ - See
normalize_float. - normalize_
float ๐ - Normalizes a float to its canonical bit pattern: a single
NaNrepresentation and-0.0collapsed to+0.0. - parse_
path ๐ - reject_
duplicate_ ๐field - Variant objects require unique field names, but RisingWave struct types allow duplicates. Callers iterate fields in name order, so comparing against the previous name suffices.
- split_
serialized_ ๐value - variant_
to_ ๐json_ value_ lossy - Converts a variant to a
serde_json::Value, rendering non-finite floats as the strings"NaN"/"Infinity"/"-Infinity", followingto_jsonbon float types.