📝 docs(trash): add documentation to trash methods
- add documentation to trash trait and methods
This commit is contained in:
committed by
Jeremiah Russell
parent
b2a2de0981
commit
1ff7929095
@@ -8,9 +8,12 @@ use crate::{GmailClient, Result, message_list::MessageList};
|
|||||||
// message_list: MessageList,
|
// message_list: MessageList,
|
||||||
// }
|
// }
|
||||||
|
|
||||||
pub(crate) trait Trash {
|
/// Methods for GmailClient to batch move messages to trash
|
||||||
async fn batch_move_to_trash(&self) -> Result<()>;
|
pub trait Trash {
|
||||||
async fn batch_trash(&self) -> Result<()>;
|
/// Batch move to trash
|
||||||
|
fn batch_move_to_trash(&self) -> impl std::future::Future<Output = Result<()>> + Send;
|
||||||
|
/// Batch trash
|
||||||
|
fn batch_trash(&self) -> impl std::future::Future<Output = Result<()>> + Send;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Trash for GmailClient {
|
impl Trash for GmailClient {
|
||||||
|
|||||||
Reference in New Issue
Block a user