Expand description
Canonical JSON types and related functions.
Structs§
- Redacted
Because  - The value to put in 
unsigned.redacted_because. 
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 impl’s 
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.