Expand description
Canonical JSON types and related functions.
Macros§
- assert_
to_ canonical_ json_ eq - Asserts that the canonical JSON serialization of a type is equal to an expected JSON value.
Structs§
- Redacted
Because - The value to put in
unsigned.redacted_because. - Serializer
- A
serde::Serializerwhose output is aCanonicalJsonValue.
Enums§
- Canonical
Json Error - The set of possible errors when serializing to canonical JSON.
- Canonical
Json Value - Represents a canonical JSON value as per the Matrix specification.
- Json
Type - A JSON type enum for
RedactionErrorvariants. - Redaction
Error - Errors that can happen in redaction.
Traits§
- Redaction
Event - 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 the given event content using the given redaction rules for the version of the current room.
- 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 implements
Serializeto aCanonicalJsonValue. - try_
from_ json_ map - Fallible conversion from a
serde_json::Mapto aCanonicalJsonObject.
Type Aliases§
- Canonical
Json Object - The inner type of
CanonicalJsonValue::Object.