Adding SpeedUnit and TempUnit
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user