#![allow(unused_imports)] use sendgrid2::SendgridClient; use sendgrid2::model::*; use sendgrid2::request::PostDesignRequired; #[tokio::main] async fn main() { let client = SendgridClient::from_env(); let args = PostDesignRequired { plain_content: "your plain content", editor: "your editor", categories: &["your categories"], name: "your name", generate_plain_content: true, subject: "your subject", html_content: "your html content", }; let response = client.post_design(args).send().await.unwrap(); println!("{:#?}", response); }