pub async fn delete_message(user: &User, id: &str) -> Result<(), Error>Expand description
Delete message
Delete a message by its id.
ยงExample
use mail_tm_rs::user::User;
use mail_tm_rs::{create_account, update_token, token, delete_message, domains};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
//let user = User::default().with_domain(&domains().await?.any().domain);
//let account = create_account(&user).await?;
//let user = update_token(&user, &token(&user).await?.token);
//let messages = delete_message(&user, "somemessageid").await?;
Ok(())
}