Use DeviceId instead of String for login response.

This commit is contained in:
Isaiah Inuwa 2020-07-17 06:16:47 -05:00
parent 848b225681
commit b6045d16a4
2 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,7 @@ Breaking changes:
* Fix event types in `r0::sync::sync_events` * Fix event types in `r0::sync::sync_events`
* Update type of `user_id` in `r0::account::whoami` from `String` to `ruma_identifiers::UserId` * Update type of `user_id` in `r0::account::whoami` from `String` to `ruma_identifiers::UserId`
* Update type of `limited` in `r0::sync::sync_events::Timeline` from `Option<bool>` to `bool` * Update type of `limited` in `r0::sync::sync_events::Timeline` from `Option<bool>` to `bool`
* Use `DeviceId` for `device_id` field of `r0::session::login::Response`
Improvements: Improvements:

View File

@ -51,9 +51,9 @@ ruma_api! {
/// ID of the logged-in device. /// ID of the logged-in device.
/// ///
/// Will be the same as the corresponging parameter in the request, if one was /// Will be the same as the corresponding parameter in the request, if one was
/// specified. /// specified.
pub device_id: String, pub device_id: DeviceId,
/// Client configuration provided by the server. /// Client configuration provided by the server.
/// ///