1extern crate futures;
2extern crate hyper;
3extern crate hyper_tls;
4extern crate serde_json;
5
6#[macro_use]
7extern crate serde_derive;
8
9pub struct Config {
10 pub module: String,
11 pub action: String,
12 pub address: String,
13 pub tag: String,
14 pub api_key: String,
15}
16
17impl Config {
18 pub fn new(
19 module: String,
20 action: String,
21 address: String,
22 tag: String,
23 api_key: String,
24 ) -> Config {
25 Config {
26 module,
27 action,
28 address,
29 tag,
30 api_key,
31 }
32 }
33}
34
35pub mod account;
36
37#[cfg(test)]
38mod tests {
39 #[test]
40 fn it_works() {
41 assert_eq!(2 + 2, 4);
42 }
43}