Typo naming
This commit is contained in:
34
src/current_weather_print_params.rs
Normal file
34
src/current_weather_print_params.rs
Normal file
@ -0,0 +1,34 @@
|
||||
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,
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user