Skip to main content

Module check

Module check 

Source

Re-exportsยง

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; ๐Ÿ”’

Functionsยง

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.