From 149d09465984194b9ce74ab6d1bc8705d8d6f9c6 Mon Sep 17 00:00:00 2001 From: Valmo Trindade Date: Thu, 12 Sep 2024 12:32:47 -0300 Subject: [PATCH] added address to LoginPayload --- src/structs.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/structs.rs b/src/structs.rs index e4d3cc4..29ed2b2 100644 --- a/src/structs.rs +++ b/src/structs.rs @@ -57,13 +57,18 @@ impl FromArma for Marker { #[derive(Serialize)] pub struct LoginPayload { + pub address: String, pub username: String, pub password: String, } impl FromArma for LoginPayload { fn from_arma(data: String) -> Result { - let (username, password) = <(String, String)>::from_arma(data)?; - Ok(Self { username, password }) + let (address, username, password) = <(String, String, String)>::from_arma(data)?; + Ok(Self { + address, + username, + password, + }) } }