From fe80737c5882dbea485b87ae9c365ae22c8ab58b Mon Sep 17 00:00:00 2001 From: Guillem Nieto Date: Fri, 22 May 2020 15:17:28 +0200 Subject: [PATCH] Change Device fields according to the spec Fields `ip` and `last_seen` should be named `last_seen_ip` and `last_seen_ts` according to the spec. https://matrix.org/docs/spec/client_server/r0.6.0#get-matrix-client-r0-devices --- src/r0/device.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r0/device.rs b/src/r0/device.rs index 0c22c151..685dab81 100644 --- a/src/r0/device.rs +++ b/src/r0/device.rs @@ -21,7 +21,7 @@ pub struct Device { pub display_name: Option, /// Most recently seen IP address of the session. - pub ip: Option, + pub last_seen_ip: Option, /// Unix timestamp that the session was last active. #[serde( @@ -29,5 +29,5 @@ pub struct Device { default, skip_serializing_if = "Option::is_none" )] - pub last_seen: Option, + pub last_seen_ts: Option, }