Adding SpeedUnit and TempUnit

This commit is contained in:
2023-06-08 23:10:21 +02:00
parent 09df3cc6ed
commit cd04da0d91
9 changed files with 184 additions and 46 deletions

View File

@ -1,8 +1,12 @@
use crate::{speed_unit::SpeedUnit, temp_unit::TempUnit};
pub struct CurrentWeatherPrintParams {
pub all: bool,
pub is_day: bool,
pub temperature: bool,
pub temperature_unit: TempUnit,
pub windspeed: bool,
pub speed_unit: SpeedUnit,
pub winddirection: bool,
pub include_coords: bool,
pub include_city: bool,
@ -14,7 +18,9 @@ impl CurrentWeatherPrintParams {
all: bool,
is_day: bool,
temperature: bool,
temperature_unit: TempUnit,
windspeed: bool,
speed_unit: SpeedUnit,
winddirection: bool,
include_coords: bool,
include_city: bool,
@ -24,7 +30,9 @@ impl CurrentWeatherPrintParams {
all,
is_day,
temperature,
temperature_unit,
windspeed,
speed_unit,
winddirection,
include_coords,
include_city,