r0.3.0/login: Add device_id to request & response
Version 0.3.0 of the client-server spec adds a `device_id` field to the login request and response. It is optional in the request. See https://matrix.org/docs/spec/client_server/r0.3.0.html#post-matrix-client-r0-login for details. I don't think this will be backwards compatible with ruma-client.
This commit is contained in:
		
							parent
							
								
									b0199a0489
								
							
						
					
					
						commit
						acac994a18
					
				| @ -28,7 +28,10 @@ pub mod login { | ||||
|             pub user: String, | ||||
|             /// Third party identifier for the user.
 | ||||
|             #[serde(skip_serializing_if = "Option::is_none")] | ||||
|             pub address: Option<String> | ||||
|             pub address: Option<String>, | ||||
|             /// ID of the client device
 | ||||
|             #[serde(skip_serializing_if = "Option::is_none")] | ||||
|             pub device_id: Option<String>, | ||||
|         } | ||||
| 
 | ||||
|         response { | ||||
| @ -42,6 +45,11 @@ pub mod login { | ||||
|             pub refresh_token: Option<String>, | ||||
|             /// The fully-qualified Matrix ID that has been registered.
 | ||||
|             pub user_id: UserId, | ||||
|             /// ID of the logged-in device.
 | ||||
|             ///
 | ||||
|             /// Will be the same as the corresponging parameter in the request, if one was
 | ||||
|             /// specified.
 | ||||
|             pub device_id: String, | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user