ballchasing 0.0.1

An API Wrapper for Ballchasing.com
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::env;

#[derive(Debug)]
struct Properties {
    authorization: Option<String>,
}

impl Properties {
    fn new() -> Properties {
        let token = match env::var("BALLCHASING_TOKEN") {
            Ok(key) => Some(key),
            Err(_) => None,
        };
        Properties {
            authorization: token,
        }
    }
}