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