open-meteo-cli/src/current_weater_print_params.rs

35 lines
769 B
Rust

pub struct CurrentWeatherPrintParams {
pub all: bool,
pub is_day: bool,
pub temperature: bool,
pub windspeed: bool,
pub winddirection: bool,
pub include_coords: bool,
pub include_city: bool,
pub clean: bool,
}
impl CurrentWeatherPrintParams {
pub fn new(
all: bool,
is_day: bool,
temperature: bool,
windspeed: bool,
winddirection: bool,
include_coords: bool,
include_city: bool,
clean: bool,
) -> CurrentWeatherPrintParams {
CurrentWeatherPrintParams {
all,
is_day,
temperature,
windspeed,
winddirection,
include_coords,
include_city,
clean,
}
}
}