Crate matrix_appservice_rs[][src]

Modules

convert

Structs

ApplicationService

A struct containing information required by an application service.

MappingDict

A map comparable to a HashMap which contains items that are Mappable. The map keeps track of the mapping between both the external type and Matrix type and an object.

Namespace

A namespace defined by an application service.

Namespaces

Namespaces defined by an application service.

Registration

Information required in the registration yaml file that a homeserver needs.

RegistrationInit

Initial set of fields of Registration.

RequestBuilder

A builder for a request to the Matrix homeserver.

Enums

MappingId

An ID being either a Matrix ID or an external ID for one object.

MatrixToItem

An item that can be represented using a matrix.to URL.

MxcConversionError

An error from converting an MXC URI to a HTTP URL.

Traits

Mappable

Represents an object that has both a Matrix ID and an external ID.

Functions

mxc_to_url

Convert the given MXC URI into a HTTP URL, using the given homeserver_url as the host to the MXC content.

new_registration_rand
serve

Listen on addrs for incoming events, and use the given handler to handle those events.