Skip to main contentModule check
Source use ruma::CanonicalJsonObject; ๐ use ruma::CanonicalJsonValue; ๐ use ruma::ID_MAX_BYTES; ๐ use ruma::RoomId; ๐ use ruma::int; ๐ use ruma::room_version_rules::EventFormatRules; ๐ use serde_json::to_string as to_json_string; ๐ use tuwunel_core::Err; ๐ use tuwunel_core::Result; ๐ use tuwunel_core::err; ๐ use super::super::MAX_AUTH_EVENTS; ๐ use super::super::MAX_PDU_BYTES; ๐ use super::super::MAX_PREV_EVENTS; ๐ use super::super::Pdu; ๐
- check_room_id
- Verifies that a parsed PDU belongs to the expected room.
- check_rules
- Check that the given canonicalized PDU respects the event format of the room
version and the size limits from the Matrix specification.
- extract_optional_string_field ๐
- Extract the optional string field with the given name from the given
canonical JSON object.
- extract_required_array_field ๐
- Extract the required array field with the given name from the given
canonical JSON object.
- extract_required_string_field ๐
- Extract the required string field with the given name from the given
canonical JSON object.