Expand description
Common types for the Ruma crates.
Re-exports§
pub use self::canonical_json::CanonicalJsonError;canonical-jsonpub use self::canonical_json::CanonicalJsonObject;canonical-jsonpub 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_levelsevent. - 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 
Base64PublicKeyconstruction. - device_
id  - Shorthand for 
<&DeviceId>::from. - event_
id  - Compile-time checked 
EventIdconstruction. - metadata
api - Convenient constructor for 
Metadataconstants. - mxc_uri
 - Compile-time checked 
MxcUriconstruction. - owned_
base64_ public_ key  - Compile-time checked 
OwnedBase64PublicKeyconstruction. - owned_
device_ id  - Shorthand for 
OwnedDeviceId::from. - owned_
event_ id  - Compile-time checked 
OwnedEventIdconstruction. - owned_
mxc_ uri  - Compile-time checked 
OwnedMxcUriconstruction. - owned_
room_ alias_ id  - Compile-time checked 
OwnedRoomAliasIdconstruction. - owned_
room_ id  - Compile-time checked 
OwnedRoomIdconstruction. - owned_
server_ name  - Compile-time checked 
OwnedServerNameconstruction. - owned_
server_ signing_ key_ version  - Compile-time checked 
OwnedServerSigningKeyVersionconstruction. - owned_
session_ id  - Compile-time checked 
OwnedSessionIdconstruction. - owned_
user_ id  - Compile-time checked 
OwnedUserIdconstruction. - room_
alias_ id  - Compile-time checked 
RoomAliasIdconstruction. - room_id
 - Compile-time checked 
RoomIdconstruction. - room_
version_ id  - Compile-time checked 
RoomVersionIdconstruction. - server_
name  - Compile-time checked 
ServerNameconstruction. - server_
signing_ key_ version  - Compile-time checked 
ServerSigningKeyVersionconstruction. - session_
id  - Compile-time checked 
SessionIdconstruction. - user_id
 - Compile-time checked 
UserIdconstruction. 
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 
DeviceIdor 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.toURI 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.toURI. - 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.