Module matrix

Source
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ยง

MatrixEventIdUri
A URI for a Matrix event ID.
MatrixRoomIdUri
A URI for a Matrix room ID.
PasswordValidity
The result of a password validation.

Enumsยง

AnySyncOrStrippedTimelineEvent
An deserialized event received in a sync response.
ClientSetupError
All errors that can occur when setting up the Matrix client.
MatrixIdUri
A URI for a Matrix ID.
MatrixIdUriParseError
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.