Expand description
Common types for the Ruma crates.
Re-exports§
pub use self::canonical_json::CanonicalJsonError;
canonical-json
pub use self::canonical_json::CanonicalJsonObject;
canonical-json
pub use self::canonical_json::CanonicalJsonValue;
canonical-json
Modules§
- api
api
- Core types used to define the requests and responses for each endpoint in the various Matrix API specifications.
- authentication
- Common types for authentication.
- canonical_
json canonical-json
- Canonical JSON types and related functions.
- directory
- Common types for room directory endpoints.
- encryption
- Common types for encryption related tasks.
- http_
headers - Helpers for HTTP headers.
- matrix_
uri - Matrix URIs.
- media
- Common types and functions for the content repository.
- power_
levels - Common types for the
m.room.power_levels
event. - presence
- Common types for the presence module.
- push
- Common types for the push notifications module.
- room
- Common types for rooms.
- serde
- (De)serialization helpers for other Ruma crates.
- space
- Common types for spaces.
- thirdparty
- Common types for the third party networks module.
- to_
device - Common types for the Send-To-Device Messaging
- user_id
- Matrix user identifiers.
Macros§
- base64_
public_ key - Compile-time checked
Base64PublicKey
construction. - device_
id - Shorthand for
<&DeviceId>::from
. - event_
id - Compile-time checked
EventId
construction. - metadata
api
- Convenient constructor for
Metadata
constants. - mxc_uri
- Compile-time checked
MxcUri
construction. - owned_
base64_ public_ key - Compile-time checked
OwnedBase64PublicKey
construction. - owned_
device_ id - Shorthand for
OwnedDeviceId::from
. - owned_
event_ id - Compile-time checked
OwnedEventId
construction. - owned_
mxc_ uri - Compile-time checked
OwnedMxcUri
construction. - owned_
room_ alias_ id - Compile-time checked
OwnedRoomAliasId
construction. - owned_
room_ id - Compile-time checked
OwnedRoomId
construction. - owned_
server_ name - Compile-time checked
OwnedServerName
construction. - owned_
server_ signing_ key_ version - Compile-time checked
OwnedServerSigningKeyVersion
construction. - owned_
session_ id - Compile-time checked
OwnedSessionId
construction. - owned_
user_ id - Compile-time checked
OwnedUserId
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_
name - Compile-time checked
ServerName
construction. - server_
signing_ key_ version - Compile-time checked
ServerSigningKeyVersion
construction. - session_
id - Compile-time checked
SessionId
construction. - user_id
- Compile-time checked
UserId
construction.
Structs§
- Base64
Public Key - A public key encoded using unpadded base64, used as an identifier for cross-signing keys.
- Base64
Public KeyOr Device Id - A Matrix ID that can be either a
DeviceId
or aBase64PublicKey
. - Client
Secret - A client secret.
- Device
Id - A Matrix device ID.
- EventId
- A Matrix event ID.
- KeyId
- A key algorithm and key name delimited by a colon.
- Matrix
ToUri - The
matrix.to
URI representation of a user, room or event. - Matrix
Uri - The
matrix:
URI representation of a user, room or event. - Milli
Seconds Since Unix Epoch - A timestamp represented as the number of milliseconds since the unix epoch.
- MxcUri
- A URI that should be a Matrix-spec compliant MXC URI.
- OneTime
KeyName - The name of a one-time or fallback key.
- Owned
Base64 Public Key - Owned variant of Base64PublicKey
- Owned
Base64 Public KeyOr Device Id - Owned variant of Base64PublicKeyOrDeviceId
- Owned
Client Secret - Owned variant of ClientSecret
- Owned
Device Id - Owned variant of DeviceId
- Owned
Event Id - Owned variant of EventId
- Owned
KeyId - Owned variant of KeyId
- Owned
MxcUri - Owned variant of MxcUri
- Owned
OneTime KeyName - Owned variant of OneTimeKeyName
- Owned
Room Alias Id - Owned variant of RoomAliasId
- Owned
Room Id - Owned variant of RoomId
- Owned
Room OrAlias Id - Owned variant of RoomOrAliasId
- Owned
Server Name - Owned variant of ServerName
- Owned
Server Signing KeyVersion - Owned variant of ServerSigningKeyVersion
- Owned
Session Id - Owned variant of SessionId
- Owned
Transaction Id - Owned variant of TransactionId
- Owned
User Id - Owned variant of UserId
- Owned
Voip Id - Owned variant of VoipId
- Room
Alias Id - A Matrix room alias ID.
- RoomId
- A Matrix room ID.
- Room
OrAlias Id - A Matrix room ID or a Matrix room alias ID.
- Seconds
Since Unix Epoch - A timestamp represented as the number of seconds since the unix epoch.
- Server
Name - A Matrix-spec compliant server name.
- Server
Signing KeyVersion - The version of a homeserver signing key.
- Session
Id - A session ID.
- Signatures
- Map of all signatures, grouped by entity.
- Transaction
Id - A Matrix transaction ID.
- UserId
- A Matrix user ID.
- VoipId
- A VoIP identifier.
Enums§
- Device
KeyAlgorithm - The algorithms for the device keys defined in the Matrix spec.
- Event
Encryption Algorithm - An encryption algorithm to be used to encrypt messages sent to a room.
- IdParse
Error - An error encountered when trying to parse an invalid ID string.
- KeyDerivation
Algorithm - A key algorithm to be used to generate a key from a passphrase.
- Matrix
IdError - An error occurred while validating a
MatrixId
. - Matrix
ToError - An error occurred while validating a
matrix.to
URI. - Matrix
UriError - An error occurred while validating a
MatrixURI
. - MxcUri
Error - An error occurred while validating an MXC URI.
- OneTime
KeyAlgorithm - The algorithms for one-time and fallback keys defined in the Matrix spec.
- Room
Version Id - A Matrix room version ID.
- Signing
KeyAlgorithm - The signing key algorithms defined in the Matrix spec.
- Voip
Version Id - A Matrix VoIP version ID.
- Voip
Version IdError - An error occurred while validating a
VoipVersionId
.
Traits§
- KeyAlgorithm
- The algorithm of a key.
- KeyName
- Helper trait to validate the name of a key.
Type Aliases§
- Cross
Signing KeyId - Algorithm + key name for cross-signing keys.
- Cross
Signing OrDevice Signatures - Map of cross-signing or device signatures, grouped by user.
- Cross
Signing OrDevice Signing KeyId - Algorithm + key name for cross-signing or device signing keys.
- Device
KeyId - Algorithm + key name for device keys.
- Device
Signatures - Map of device signatures, grouped by user.
- Device
Signing KeyId - Algorithm + key name for device signing keys.
- Entity
Signatures - Map of key identifier to signature values.
- OneTime
KeyId - Algorithm + key name for one-time and fallback keys.
- Owned
Cross Signing KeyId - Algorithm + key name for cross-signing keys.
- Owned
Cross Signing OrDevice Signing KeyId - Algorithm + key name for cross-signing or device signing keys.
- Owned
Device KeyId - Algorithm + key name for device keys.
- Owned
Device Signing KeyId - Algorithm + key name for [device signing] keys.
- Owned
OneTime KeyId - Algorithm + key name for one-time and fallback keys.
- Owned
Server Signing KeyId - Algorithm + key name for homeserver signing keys.
- Owned
Signing KeyId - Algorithm + key name for signing keys.
- Server
Signatures - Map of server signatures, grouped by server.
- Server
Signing KeyId - Algorithm + key name for homeserver signing keys.
- Signing
KeyId - Algorithm + key name for signing keys.