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
sourceimpl FutureFrom<Response<Body>> for Response
impl FutureFrom<Response<Body>> for Response
type Future = Box<dyn Future<Error = <Response as FutureFrom<Response<Body>>>::Error, Item = Response> + Send + 'static, Global>
type Future = Box<dyn Future<Error = <Response as FutureFrom<Response<Body>>>::Error, Item = Response> + Send + 'static, Global>
The future for the conversion.
sourcefn future_from(
http_response: Response<Body>
) -> <Response as FutureFrom<Response<Body>>>::Future
fn future_from(
http_response: Response<Body>
) -> <Response as FutureFrom<Response<Body>>>::Future
Consume the given value, beginning the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more