weather 0.1.1

Rust CLI weather forecasting tool
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod remote;
mod file;

pub use self::remote::*;
pub use self::file::*;

use std::error::Error;

pub type WeatherData = Result<String, Box<Error>>;

pub trait Source {
    fn hourly_forecast(&self) -> WeatherData;
    fn current_conditions(&self) -> WeatherData;
}