#![allow(unused_imports)] use gmail::GmailClient; use gmail::model::*; #[tokio::main] async fn main() { let client = GmailClient::from_env(); let send_as_email = "your send as email"; let user_id = "your user id"; let response = client .settings_send_as_update(send_as_email, user_id) .display_name("your display name") .is_default(true) .is_primary(true) .reply_to_address("your reply to address") .signature("your signature") .smtp_msa(serde_json::json!({})) .treat_as_alias(true) .verification_status("your verification status") .await .unwrap(); println!("{:#?}", response); }