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, + }) } }