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