Crate dementia [−] [src]
A module for writing Matrix bots
This module maps some parts of the Matrix client-server protocoll to rust
objects.
In order to communicate with the Matrix homeserver, this library needs an
authentication token (access_token
).
This authentication token can either be given directly, or can be generated
using username-password authentication, if the homeserver supports this.
With this authentication token, rooms can be joined or created.
After as room has been joined, messages can be sent to the room and new
messages can be fetched from from the room.
Structs
ACCESS_TOKEN_ENCODE_SET | |
MatrixHomeserver |
Represents a Matrix homeserver to which an access token has been created |
MatrixRoom |
Represents a Matrix room from which events can be fetched from |
Enums
Message |
A message received from or to be sent to a room |
RoomEvent |
An event received from or to be sent to a room |