Crate ruma_identifiers[−][src]
Types for Matrix identifiers for devices, events, keys, rooms, servers, users and URIs.
Modules
user_id | Matrix user identifiers. |
Macros
device_id | Shorthand for |
device_key_id | Compile-time checked |
event_id | Compile-time checked |
mxc_uri | Compile-time checked |
room_alias_id | Compile-time checked |
room_id | Compile-time checked |
room_version_id | Compile-time checked |
server_key_id | Deprecated Compile-time checked |
server_name | Compile-time checked |
server_signing_key_id | Compile-time checked |
user_id | Compile-time checked |
Structs
DeviceId | A Matrix key ID. |
DeviceKeyId | A key algorithm and a device id, combined with a ‘:’. |
EventId | A Matrix event ID. |
KeyId | A key algorithm and key name delimited by a colon |
KeyName | A Matrix key identifier. |
MxcUri | A URI that should be a Matrix-spec compliant MXC URI. |
RoomAliasId | A Matrix room alias ID. |
RoomId | A Matrix room ID. |
RoomIdOrAliasId | A Matrix room ID or a Matrix room alias ID. |
ServerName | A Matrix-spec compliant server name. |
Signatures | Map of all signatures, grouped by entity |
UserId | A Matrix user ID. |
Enums
DeviceKeyAlgorithm | The basic key algorithms in the specification. |
Error | An error encountered when trying to parse an invalid ID string. |
EventEncryptionAlgorithm | An encryption algorithm to be used to encrypt messages sent to a room. |
RoomVersionId | A Matrix room version ID. |
SigningKeyAlgorithm | The signing key algorithms defined in the Matrix spec. |
Functions
is_valid_server_name | Deprecated Check whether a given string is a valid server name according to the specification. |
Type Definitions
DeviceIdBox | An owned DeviceId. |
DeviceSignatures | Map of device signatures for an event, grouped by user. |
DeviceSigningKeyId | Algorithm + key name for device keys. |
EntitySignatures | Map of key identifier to signature values. |
KeyNameBox | An owned KeyName. |
ServerNameBox | An owned server name. |
ServerSignatures | Map of server signatures for an event, grouped by server. |
ServerSigningKeyId | Algorithm + key name for homeserver signing keys. |
SigningKeyId | Algorithm + key name for signing keys. |