logo
Expand description

Common types for the Ruma crates.

Modules

Core types used to define the requests and responses for each endpoint in the various Matrix API specifications.

Common types for authentication.

Common types for room directory endpoints.

Common types for encryption related tasks.

(De)serializable types for the events in the Matrix specification. These types are used by other Ruma crates.

Matrix URIs.

Common types for the presence module.

Common types for the push notifications module.

Common types for receipts.

Common types for rooms.

(De)serialization helpers for other Ruma crates.

Common types for the Send-To-Device Messaging

Matrix user identifiers.

Macros

Shorthand for <&DeviceId>::from.

Compile-time checked DeviceKeyId construction.

Compile-time checked EventId construction.

Compile-time checked MxcUri construction.

Compile-time checked RoomAliasId construction.

Compile-time checked RoomId construction.

Compile-time checked RoomVersionId construction.

Compile-time checked ServerName construction.

Compile-time checked ServerSigningKeyId construction.

Compile-time checked UserId construction.

Structs

A client secret.

A Matrix key ID.

A key algorithm and a device id, combined with a ‘:’.

A Matrix event ID.

A key algorithm and key name delimited by a colon.

A Matrix key identifier.

The matrix.to URI representation of a user, room or event.

The matrix: URI representation of a user, room or event.

A timestamp represented as the number of milliseconds since the unix epoch.

A URI that should be a Matrix-spec compliant MXC URI.

Owned variant of ClientSecret

Owned variant of DeviceId

Owned variant of DeviceKeyId

Owned variant of EventId

Owned variant of KeyId

Owned variant of KeyName

Owned variant of MxcUri

Owned variant of RoomAliasId

Owned variant of RoomId

Owned variant of RoomName

Owned variant of RoomOrAliasId

Owned variant of ServerName

Owned variant of SessionId

Owned variant of TransactionId

Owned variant of UserId

A Matrix room ID.

The name of a room.

A Matrix room ID or a Matrix room alias ID.

A timestamp represented as the number of seconds since the unix epoch.

A Matrix-spec compliant server name.

A session ID.

Map of all signatures, grouped by entity

A Matrix transaction ID.

A Matrix user ID.

Enums

The basic key algorithms in the specification.

An encryption algorithm to be used to encrypt messages sent to a room.

An error encountered when trying to parse an invalid ID string.

A key algorithm to be used to generate a key from a passphrase.

The signing key algorithms defined in the Matrix spec.

Type Definitions

Map of device signatures for an event, grouped by user.

Algorithm + key name for device keys.

Map of key identifier to signature values.

Algorithm + key name for device keys.

Algorithm + key name for homeserver signing keys.

Algorithm + key name for signing keys.

Map of server signatures for an event, grouped by server.

Algorithm + key name for homeserver signing keys.

Algorithm + key name for signing keys.