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