Skip to main content

Module decode

Module decode 

Source
Expand description

JSON decoding APIs and their diagnostics.

Structs§

JsonDecodeError
Failure produced by either strict or normalizing JSON decoding.
JsonDecoder
Strictly decodes complete JSON documents while retaining cumulative usage.
JsonSyntaxError
A JSON syntax error with byte and human-readable source coordinates.
NormalizedJsonDocument
A normalized JSON document whose text outlives borrowed decode results.
NormalizingJsonDecodePolicy
Text-normalization and diagnostic policy for crate::decode::NormalizingJsonDecoder.
NormalizingJsonDecodePolicyBuilder
Builder for NormalizingJsonDecodePolicy.
NormalizingJsonDecoder
Normalizes non-fully-trusted text before decoding complete JSON documents.

Enums§

DiagnosticPolicy
Controls whether JSON decoding errors retain input-derived details.
JsonDecodeErrorKind
Represents the coarse category of a JSON decoding failure.
JsonDecodeErrorSource
An owned semantic source extracted from a JSON decoding failure.
JsonDecodeStage
Identifies the semantic decoding stage where a failure occurred.
JsonRootKind
Represents the top-level kind of a parsed JSON value.
JsonSyntaxErrorReason
The concrete reason why a JSON document was rejected lexically.
MarkdownFenceClosing
Specifies whether an opening Markdown code fence needs a closing fence.
MarkdownFencePolicy
Controls whether and how one outer Markdown code fence is stripped.