extern crate shuttle_sdk; use shuttle_sdk::{Result, Server}; const TESTNET_URL: &'static str = "https://horizon-testnet.stellar.org"; fn get_assets() -> Result<()> { let server = Server::new(TESTNET_URL)?; let res = server.assets().send()?; println!("Res: {:?}", res); let for_code = server.assets().for_code("TEST").send()?; println!("Res: {:?}", for_code); for rec in for_code.records.iter() { println!("{:?}", rec); } Ok(()) } fn main() { get_assets().unwrap(); }