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