pub struct MatrixUri {
    pub mxid: MatrixId,
    pub child_mxid: Option<MatrixId>,
    pub routing: Vec<String>,
    pub authority: Option<String>,
    pub fragment: Option<String>,
    /* private fields */
}
Expand description

A Matrix URI

Fields

mxid: MatrixId

Primary MXID

child_mxid: Option<MatrixId>

Secondary, optional, MXID

routing: Vec<String>

Homeserver address order is preserved from URI

authority: Option<String>

“Reserved for future use” according to MSC

fragment: Option<String>

“Reserved for future use” according to MSC

Implementations

Builds new Matrix URI

Returns the action key from query parameters

Constructs a query string from itself

Builds a matrix.to URI

Builds a URI according to MSC2312 (matrix://)

Trait Implementations

Formats the value using the given formatter. Read more

Parses both matrix.to URLs and MSC2312 (matrix://) URIs

The associated error which can be returned from parsing.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.