ruma_common

Module canonical_json

Source
Available on crate feature canonical-json only.
Expand description

Canonical JSON types and related functions.

Structs§

RedactedBecause
The value to put in unsigned.redacted_because.

Enums§

CanonicalJsonError
The set of possible errors when serializing to canonical JSON.
CanonicalJsonValue
Represents a canonical JSON value as per the Matrix specification.
JsonType
A JSON type enum for RedactionError variants.
RedactionError
Errors that can happen in redaction.

Traits§

RedactionEvent
Marker trait for redaction events.

Functions§

redact
Redacts an event using the rules specified in the Matrix client-server specification.
redact_content_in_place
Redacts event content using the rules specified in the Matrix client-server specification.
redact_in_place
Redacts an event using the rules specified in the Matrix client-server specification.
to_canonical_value
Fallible conversion from any value that impl’s Serialize to a CanonicalJsonValue.
try_from_json_map
Fallible conversion from a serde_json::Map to a CanonicalJsonObject.

Type Aliases§

CanonicalJsonObject
The inner type of CanonicalJsonValue::Object.