Module ruma_common::canonical_json
source · [−]Available on crate feature
canonical-json
only.Expand description
Canonical JSON types and related functions.
Enums
The set of possible errors when serializing to canonical JSON.
Represents a canonical JSON value as per the Matrix specification.
A JSON type enum for
RedactionError
variants.Errors that can happen in redaction.
Functions
Redacts an event using the rules specified in the Matrix client-server specification.
Redacts event content using the rules specified in the Matrix client-server specification.
Redacts an event using the rules specified in the Matrix client-server specification.
Fallible conversion from any value that impl’s
Serialize
to a CanonicalJsonValue
.Fallible conversion from a
serde_json::Map
to a CanonicalJsonObject
.Type Definitions
The inner type of
CanonicalJsonValue::Object
.