Available on crate feature
canonical-json
only.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
RedactionError
variants. - 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 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 aCanonicalJsonValue
. - try_
from_ json_ map - Fallible conversion from a
serde_json::Map
to aCanonicalJsonObject
.
Type Aliases§
- Canonical
Json Object - The inner type of
CanonicalJsonValue::Object
.