From 1ff792909588dc90d33484a18f570eb6eb9d0dc8 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Mon, 13 Oct 2025 16:48:00 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs(trash):=20add=20documentati?= =?UTF-8?q?on=20to=20trash=20methods?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add documentation to trash trait and methods --- src/trash.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/trash.rs b/src/trash.rs index df7f496..51e98c7 100644 --- a/src/trash.rs +++ b/src/trash.rs @@ -8,9 +8,12 @@ use crate::{GmailClient, Result, message_list::MessageList}; // message_list: MessageList, // } -pub(crate) trait Trash { - async fn batch_move_to_trash(&self) -> Result<()>; - async fn batch_trash(&self) -> Result<()>; +/// Methods for GmailClient to batch move messages to trash +pub trait Trash { + /// Batch move to trash + fn batch_move_to_trash(&self) -> impl std::future::Future> + Send; + /// Batch trash + fn batch_trash(&self) -> impl std::future::Future> + Send; } impl Trash for GmailClient {