Skip to main content

open_meteo_rs/
location.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Serialize, Deserialize)]
4pub struct Location {
5    pub lat: f64,
6    pub lng: f64,
7}
8
9impl Default for Location {
10    fn default() -> Self {
11        Self {
12            lat: 52.52,
13            lng: 13.41,
14        }
15    }
16}