Crate ruma_common
source ·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
apiCore types used to define the requests and responses for each endpoint in the various Matrix API specifications. - Common types for authentication.
- canonical_json
canonical-jsonCanonical JSON types and related functions. - Common types for room directory endpoints.
- Common types for encryption related tasks.
- Matrix URIs.
- Common types for the
m.room.power_levelsevent. - Common types for the presence module.
- Common types for the push notifications module.
- Common types for rooms.
- (De)serialization helpers for other Ruma crates.
- Common types for spaces.
- Common types for the third party networks module.
- Common types for the Send-To-Device Messaging
- Matrix user identifiers.
Macros
- Shorthand for
<&DeviceId>::from. - Compile-time checked
DeviceKeyIdconstruction. - Compile-time checked
EventIdconstruction. - metadata
apiConvenient constructor forMetadataconstants. - Compile-time checked
MxcUriconstruction. - Shorthand for
OwnedDeviceId::from. - Compile-time checked
OwnedDeviceKeyIdconstruction. - Compile-time checked
OwnedEventIdconstruction. - Compile-time checked
OwnedMxcUriconstruction. - Compile-time checked
OwnedRoomAliasIdconstruction. - Compile-time checked
OwnedRoomIdconstruction. - Compile-time checked
OwnedServerNameconstruction. - Compile-time checked
OwnedServerSigningKeyIdconstruction. - Compile-time checked
OwnedSessionIdconstruction. - Compile-time checked
OwnedUserIdconstruction. - Compile-time checked
RoomAliasIdconstruction. - Compile-time checked
RoomIdconstruction. - Compile-time checked
RoomVersionIdconstruction. - Compile-time checked
ServerNameconstruction. - Compile-time checked
ServerSigningKeyIdconstruction. - Compile-time checked
SessionIdconstruction. - Compile-time checked
UserIdconstruction.
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.toURI 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 RoomOrAliasId
- Owned variant of ServerName
- Owned variant of SessionId
- Owned variant of TransactionId
- Owned variant of UserId
- Owned variant of VoipId
- A Matrix room alias ID.
- A Matrix room ID.
- 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.
- A VoIP identifier.
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.
- An error occurred while validating a
MatrixId. - An error occurred while validating a
matrix.toURI. - An error occurred while validating a
MatrixURI. - An error occurred while validating an MXC URI.
- A Matrix room version ID.
- The signing key algorithms defined in the Matrix spec.
- A Matrix VoIP version ID.
- An error occurred while validating a
VoipVersionId.
Type Aliases
- 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.