open-notify-api 0.2.0

Crate to access data provided by http://open-notify.org/
Documentation
1
2
3
4
5
6
7
8
9
10
extern crate open_notify_api;

fn main() {
    match open_notify_api::astros() {
        Ok(astros) => for person in astros.people() {
            println!("{}", person.name());
        },
        Err(e) => eprintln!("{:?}", e),
    }
}