mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 19:03:30 +00:00
added address to LoginPayload
This commit is contained in:
@@ -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<Self, String> {
|
||||
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,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user