Crate facet_format

Crate facet_format 

Source
Expand description

Prototype types for the format codex deserializer.

Structs§

EnumVariantHint
Metadata about an enum variant for use with hint_enum.
FieldEvidence
Evidence describing a serialized field encountered while probing input.
FieldKey
Field key with optional namespace (for XML).
FormatDeserializer
Generic deserializer that drives a format-specific parser directly into Partial.
SolveOutcome
High-level outcome from solving an untagged enum.
StructFieldTracker
Tracks which fields have been seen while deserializing a struct.

Enums§

ContainerKind
The kind of container being parsed.
DeserializeError
Error produced by FormatDeserializer.
FieldLocationHint
Location hint for a serialized field.
FieldMatch
Result of checking a serialized field against the active resolution.
FieldOrdering
Field ordering preference for serialization.
ParseEvent
Event emitted by a format parser while streaming through input.
ScalarTypeHint
Hint for what scalar type is expected next.
ScalarValue
Scalar data extracted from the wire format.
SerializeError
Error produced by the shared serializer.
SolveVariantError
Error when variant solving fails.
ValueTypeHint
Value classification hint for evidence gathering.

Traits§

FormatParser
Streaming parser for a specific wire format.
FormatSerializer
Low-level serializer interface implemented by each format backend.
ProbeStream
Streaming cursor that yields serialized fields for solver probing.

Functions§

serialize_root
Serialize a root value using the shared traversal logic.
solve_variant
Attempt to solve which enum variant matches the input.