pub struct Response {
    pub access_token: String,
    pub home_server: String,
    pub refresh_token: Option<String>,
    pub user_id: UserId,
    pub device_id: String,
}
Expand description

Data in the response from this API endpoint.

Fields

access_token: String

An access token for the account.

home_server: String

The hostname of the homeserver on which the account has been registered.

refresh_token: Option<String>

A refresh token may be exchanged for a new access token using the /tokenrefresh API endpoint.

user_id: UserId

The fully-qualified Matrix ID that has been registered.

device_id: String

ID of the logged-in device.

Will be the same as the corresponging parameter in the request, if one was specified.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
The future for the conversion.
Possible errors during conversion.
Consume the given value, beginning the conversion.

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.