midas/sdk/accu_weather/forecast
Types
pub type DailyForecast {
DailyForecast(
date: String,
sunrise: String,
sunset: String,
minimum_temperature: Float,
maximum_temperature: Float,
day: Detail,
night: Detail,
)
}
Constructors
-
DailyForecast( date: String, sunrise: String, sunset: String, minimum_temperature: Float, maximum_temperature: Float, day: Detail, night: Detail, )
Functions
pub fn daily_forcast_decoder(
raw: Dynamic,
) -> Result(DailyForecast, List(DecodeError))
pub fn five_day_forecast(
api_key: String,
location: String,
) -> Effect(List(DailyForecast))
pub fn five_day_forecast_request(
api_key: String,
location: String,
) -> Request(BitArray)
pub fn five_day_forecast_response(
response: Response(BitArray),
) -> Result(List(DailyForecast), Snag)