use postman2::PostmanClient; use postman2::model::*; #[tokio::main] async fn main() { let client = PostmanClient::from_env(); let response = client .all_environments() .workspace_id("your workspace id") .send() .await .unwrap(); println!("{:#?}", response); }