Damir Jelić 7ec2b0b555
ruma-events: Create separate to-device content structs
While it's possible to share the content between different event types
in the usual case some event types have slightly different contents if
they are sent out as a to-device event vs a room message event.

The canonical example for this are key verification events where the
to-device version has a transaction id field but the room message
version uses event relationships for the same purpose.

This patch makes it possible for to-device events to have different
content structs. Type aliases are used where a common struct can be
used.
2020-12-04 19:48:34 +01:00
2020-11-27 22:07:35 +01:00
2020-11-27 18:22:18 +01:00
2020-12-03 22:28:23 +01:00
2020-06-05 00:26:10 +02:00
2020-11-27 18:22:18 +01:00
2020-06-10 22:20:41 +02:00
2020-09-26 15:52:52 +02:00
2020-09-29 20:30:33 +02:00

Ruma Your home in Matrix.

A set of Rust crates (libraries) for interacting with the Matrix chat network.

websitechat

Status

As of 2020-09-29, we support the vast majority of endpoints in all of the various Matrix APIs.

As long as they are still at version 0.x though, only the latest API revision is considered supported. This may change after 1.x releases.

Contributing

See CONTRIBUTING.md.

Minimum Rust version

Ruma currently requires Rust 1.43.0. In general, we will never require beta or nightly for crates.io releases of our crates, and we will try to avoid releasing crates that depend on features that were only just stabilized.

The exception to this is ruma-signatures (and hence ruma with the federation-api feature) since it depends on ring, which is only guaranteed to work on the latest stable.

License

MIT

Description
No description provided
Readme MIT 14 MiB
Languages
Rust 100%