extern crate jlib; use jlib::api::query::account_tums::*; use jlib::message::query::account_tums::{RequestAccountTumsResponse, AccounTumSideKick}; use jlib::Config; pub static TEST_SERVER: &'static str = "ws://42.81.160.87:5020"; fn main() { let config = Config::new(TEST_SERVER, true); let account = "jB7rxgh43ncbTX4WeMoeadiGMfmfqY2xLZ".to_string(); AccountTums::new().request_account_tums(config, account, |x| match x { Ok(response) => { let res: RequestAccountTumsResponse = response; println!("account tums: \n{:?}", &res); }, Err(e) => { let err: AccounTumSideKick = e; println!("err: {:?}", err); } }); }