use freedom_api::prelude::*; use freedom_config::Config; use futures::StreamExt; #[tokio::main] async fn main() -> Result<(), Box> { let config = Config::from_env()?; let client = Client::from_config(config); let satellite_configurations = client .get_satellite_configurations_by_account_name("ATLAS") .filter_map(|result| async move { result.ok() }) .map(|container| container.into_inner()) .collect::>() .await; println!("{:#?}", satellite_configurations); Ok(()) }