use crate::models;
use serde::{Deserialize, Serialize};
#[serde_with::serde_as]
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DeviceAuthInfoGeolocation {
#[serde(rename = "city")]
pub city: String,
#[serde(rename = "country")]
pub country: String,
#[serde(rename = "region")]
pub region: String,
#[serde(rename = "regionCode")]
pub region_code: String,
}
impl DeviceAuthInfoGeolocation {
pub fn new(
city: String,
country: String,
region: String,
region_code: String,
) -> DeviceAuthInfoGeolocation {
DeviceAuthInfoGeolocation {
city,
country,
region,
region_code,
}
}
}