pub trait EmailProvider: Send + Sync {
// Required methods
fn list_emails<'life0, 'life1, 'async_trait>(
&'life0 self,
folder: &'life1 str,
limit: u32,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_email<'life0, 'life1, 'async_trait>(
&'life0 self,
email_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn send_email<'life0, 'life1, 'async_trait>(
&'life0 self,
draft: &'life1 EmailDraft,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn reply_to_email<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
email_id: &'life1 str,
body: &'life2 str,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn forward_email<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
email_id: &'life1 str,
to: &'life2 [String],
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn move_email<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
email_id: &'life1 str,
folder: &'life2 str,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn label_email<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
email_id: &'life1 str,
labels: &'life2 [String],
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn search_emails<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
limit: u32,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn mark_read<'life0, 'life1, 'async_trait>(
&'life0 self,
email_id: &'life1 str,
is_read: bool,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Email provider trait