Expand description
Collection of methods related to the Matrix specification.
Re-exportsยง
pub use self::media_message::MediaMessage;
pub use self::media_message::VisualMediaMessage;
Modulesยง
- ext_
traits - Extension traits for Matrix types.
- media_
message ๐
Structsยง
- Matrix
Event IdUri - A URI for a Matrix event ID.
- Matrix
Room IdUri - A URI for a Matrix room ID.
- Password
Validity - The result of a password validation.
Enumsยง
- AnySync
OrStripped Timeline Event - An deserialized event received in a sync response.
- Client
Setup Error - All errors that can occur when setting up the Matrix client.
- Matrix
IdUri - A URI for a Matrix ID.
- Matrix
IdUri Parse Error - Errors encountered when parsing a Matrix ID URI.
Constantsยง
- AT_ROOM
- The textual representation of a room mention.
Functionsยง
- append_
children_ ๐mentions - Find mentions in the given child nodes and append them to the given list.
- char_
is_ ๐ascii_ word_ boundary - Whether the given
char
is a word boundary, according to the Matrix spec. - client_
with_ stored_ session - Create a
Client
with the given stored session. - find_
at_ room - Find
@room
in the given string. - find_
html_ mentions - Find mentions in the given HTML string.
- get_
event_ body - Extract the body from the given event.
- get_
message_ event_ body - Extract the body from the given message event.
- get_
stripped_ state_ event_ body - Extract the body from the given state event.
- node_
as_ ๐mention - Try to convert the given node to a mention.
- raw_eq
- Compare two raw JSON sources.
- seconds_
since_ ๐unix_ epoch_ to_ date - Convert the given number of seconds since Unix EPOCH to a
GDateTime
. - text_
event_ ๐body - timestamp_
to_ ๐date - Convert the given timestamp to a
GDateTime
. - validate_
password - Validate a password according to the Matrix specification.