1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
use reqwest::Client; /// Global application context. #[derive(Debug, Clone)] pub struct Context { pub http_client: Client, pub wallet_dir: String, pub owner_endpoint: String, pub wallet_password: String, } impl Default for Context { fn default() -> Self { Context { http_client: reqwest::Client::new(), wallet_dir: String::default(), owner_endpoint: String::default(), wallet_password: String::default(), } } }