[][src]Crate ruma_identifiers

Crate ruma_identifiers contains types for Matrix identifiers for events, rooms, room aliases, room versions, and users.

Modules

device_id

Matrix device identifiers.

user_id

Matrix user identifiers.

Macros

device_id

Shorthand for Box::<DeviceId>::from.

device_key_id

Compile-time checked DeviceKeyId construction.

event_id

Compile-time checked EventId construction.

room_alias_id

Compile-time checked RoomAliasId construction.

room_id

Compile-time checked RoomId construction.

room_version_id

Compile-time checked RoomVersionId construction.

server_key_id

Compile-time checked ServerKeyId construction.

server_name

Compile-time checked ServerName construction.

user_id

Compile-time checked UserId construction.

Structs

DeviceId

A Matrix device ID.

DeviceKeyId

A key algorithm and a device id, combined with a ':'

EventId

A Matrix event ID.

RoomAliasId

A Matrix room alias ID.

RoomId

A Matrix room ID.

RoomIdOrAliasId

A Matrix room ID or a Matrix room alias ID.

ServerKeyId

Key identifiers used for homeserver signing keys.

ServerName

A Matrix-spec compliant server name.

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.

RoomVersionId

A Matrix room version ID.

ServerKeyAlgorithm

The server key algorithms defined in the Matrix spec.

Functions

is_valid_server_nameDeprecated

Check whether a given string is a valid server name according to the specification.