[][src]Struct ruma_client_api::r0::session::login::Response

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

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

impl Clone for Response[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Response[src]

impl TryFrom<Response> for Response<Body>[src]

type Error = Error

The type returned in the event of a conversion error.

impl FutureFrom<Response<Body>> for Response[src]

type Future = Box<dyn _Future<Item = Self, Error = Self::Error> + Send>

The future for the conversion.

type Error = Error

Possible errors during conversion.

Auto Trait Implementations

impl Send for Response

impl Sync for Response

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T