homegate/models/address.rs
1use serde::{Deserialize, Serialize};
2
3use crate::models::geo_coords::GeoCoords;
4
5#[derive(Serialize, Deserialize, Debug, Clone)]
6#[serde(rename_all = "camelCase")]
7pub struct Address {
8 pub country: Option<String>,
9 pub geo_coordinates: GeoCoords,
10 pub locality: Option<String>,
11 pub postal_code: String,
12 pub region: Option<String>,
13 pub street: Option<String>,
14}