Skip to main content

Crate facet_format

Crate facet_format 

Source
Expand description

Prototype types for the format deserializer.

Structs§

DeserializeError
Error produced by the format deserializer.
EnumVariantHint
Metadata about an enum variant for use with hint_enum.
FieldEvidence
Evidence describing a serialized field encountered while probing input.
FormatDeserializer
Generic deserializer that drives a format-specific parser directly into Partial.
ParseError
Error produced by a format parser (JSON, TOML, etc.).
ParseEvent
Event emitted by a format parser while streaming through input.
SavePoint
Opaque token returned by FormatParser::save.
SolveOutcome
High-level outcome from solving an untagged enum.
SpanGuard
RAII guard that sets the current span for error reporting.
StructFieldTracker
Tracks which fields have been seen while deserializing a struct.
ValueMeta
Metadata associated with a value being deserialized.
ValueMetaBuilder
Builder for ValueMeta.

Enums§

ContainerKind
The kind of container being parsed.
DeserializeErrorKind
Specific kinds of deserialization errors.
DynamicValueEncoding
How dynamic values (e.g. facet_value::Value) should be encoded.
DynamicValueTag
Tag describing the concrete payload type for a dynamic value.
EnumVariantEncoding
How enum variants should be serialized.
FieldKey
Field key for a serialized field.
FieldLocationHint
Location hint for a serialized field.
FieldMatch
Result of checking a serialized field against the active resolution.
FieldOrdering
Field ordering preference for serialization.
MapEncoding
How map-like values should be serialized.
MetaSource
Specifies where metadata should come from during deserialization.
ParseEventKind
The kind of parse event.
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.
StructFieldMode
How struct fields should be serialized.
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.

Functions§

serialize_root
Serialize a root value using the shared traversal logic.
serialize_value_with_shape
Serialize a dynamic value (like facet_value::Value) according to a target shape.
solve_variant
Attempt to solve which enum variant matches the input.