#![allow(unused_imports)] use sendgrid2::SendgridClient; use sendgrid2::model::*; #[tokio::main] async fn main() { let client = SendgridClient::from_env(); let new_password = "your new password"; let old_password = "your old password"; let response = client .put_user_password(new_password, old_password) .on_behalf_of("your on behalf of") .send() .await .unwrap(); println!("{:#?}", response); }