Trait mailslurp::apis::EmailControllerApi[][src]

pub trait EmailControllerApi {
    fn delete_all_emails(
        &self
    ) -> Box<dyn Future<Item = (), Error = Error<Value>>>;
fn delete_email(
        &self,
        email_id: &str
    ) -> Box<dyn Future<Item = (), Error = Error<Value>>>;
fn download_attachment(
        &self,
        attachment_id: &str,
        email_id: &str,
        api_key: Option<&str>
    ) -> Box<dyn Future<Item = String, Error = Error<Value>>>;
fn download_attachment_base64(
        &self,
        attachment_id: &str,
        email_id: &str
    ) -> Box<dyn Future<Item = DownloadAttachmentDto, Error = Error<Value>>>;
fn forward_email(
        &self,
        email_id: &str,
        forward_email_options: ForwardEmailOptions
    ) -> Box<dyn Future<Item = (), Error = Error<Value>>>;
fn get_attachment_meta_data(
        &self,
        attachment_id: &str,
        email_id: &str
    ) -> Box<dyn Future<Item = AttachmentMetaData, Error = Error<Value>>>;
fn get_attachments(
        &self,
        email_id: &str
    ) -> Box<dyn Future<Item = Vec<AttachmentMetaData>, Error = Error<Value>>>;
fn get_email(
        &self,
        email_id: &str,
        decode: Option<bool>
    ) -> Box<dyn Future<Item = Email, Error = Error<Value>>>;
fn get_email_content_match(
        &self,
        email_id: &str,
        content_match_options: ContentMatchOptions
    ) -> Box<dyn Future<Item = EmailContentMatchResult, Error = Error<Value>>>;
fn get_email_html(
        &self,
        email_id: &str,
        decode: Option<bool>
    ) -> Box<dyn Future<Item = String, Error = Error<Value>>>;
fn get_email_html_query(
        &self,
        email_id: &str,
        html_selector: Option<&str>
    ) -> Box<dyn Future<Item = EmailTextLinesResult, Error = Error<Value>>>;
fn get_email_text_lines(
        &self,
        email_id: &str,
        decode_html_entities: Option<bool>,
        line_separator: Option<&str>
    ) -> Box<dyn Future<Item = EmailTextLinesResult, Error = Error<Value>>>;
fn get_emails_paginated(
        &self,
        inbox_id: Option<Vec<String>>,
        page: Option<i32>,
        size: Option<i32>,
        sort: Option<&str>,
        unread_only: Option<bool>
    ) -> Box<dyn Future<Item = PageEmailProjection, Error = Error<Value>>>;
fn get_latest_email(
        &self,
        inbox_ids: Option<Vec<String>>
    ) -> Box<dyn Future<Item = Email, Error = Error<Value>>>;
fn get_latest_email_in_inbox(
        &self,
        inbox_id: Option<&str>
    ) -> Box<dyn Future<Item = Email, Error = Error<Value>>>;
fn get_organization_emails_paginated(
        &self,
        inbox_id: Option<Vec<String>>,
        page: Option<i32>,
        size: Option<i32>,
        sort: Option<&str>,
        unread_only: Option<bool>
    ) -> Box<dyn Future<Item = PageEmailProjection, Error = Error<Value>>>;
fn get_raw_email_contents(
        &self,
        email_id: &str
    ) -> Box<dyn Future<Item = String, Error = Error<Value>>>;
fn get_raw_email_json(
        &self,
        email_id: &str
    ) -> Box<dyn Future<Item = RawEmailJson, Error = Error<Value>>>;
fn get_unread_email_count(
        &self
    ) -> Box<dyn Future<Item = UnreadCount, Error = Error<Value>>>;
fn reply_to_email(
        &self,
        email_id: &str,
        reply_to_email_options: ReplyToEmailOptions
    ) -> Box<dyn Future<Item = SentEmailDto, Error = Error<Value>>>;
fn validate_email(
        &self,
        email_id: &str
    ) -> Box<dyn Future<Item = ValidationDto, Error = Error<Value>>>; }

Required methods

fn delete_all_emails(&self) -> Box<dyn Future<Item = (), Error = Error<Value>>>[src]

fn delete_email(
    &self,
    email_id: &str
) -> Box<dyn Future<Item = (), Error = Error<Value>>>
[src]

fn download_attachment(
    &self,
    attachment_id: &str,
    email_id: &str,
    api_key: Option<&str>
) -> Box<dyn Future<Item = String, Error = Error<Value>>>
[src]

fn download_attachment_base64(
    &self,
    attachment_id: &str,
    email_id: &str
) -> Box<dyn Future<Item = DownloadAttachmentDto, Error = Error<Value>>>
[src]

fn forward_email(
    &self,
    email_id: &str,
    forward_email_options: ForwardEmailOptions
) -> Box<dyn Future<Item = (), Error = Error<Value>>>
[src]

fn get_attachment_meta_data(
    &self,
    attachment_id: &str,
    email_id: &str
) -> Box<dyn Future<Item = AttachmentMetaData, Error = Error<Value>>>
[src]

fn get_attachments(
    &self,
    email_id: &str
) -> Box<dyn Future<Item = Vec<AttachmentMetaData>, Error = Error<Value>>>
[src]

fn get_email(
    &self,
    email_id: &str,
    decode: Option<bool>
) -> Box<dyn Future<Item = Email, Error = Error<Value>>>
[src]

fn get_email_content_match(
    &self,
    email_id: &str,
    content_match_options: ContentMatchOptions
) -> Box<dyn Future<Item = EmailContentMatchResult, Error = Error<Value>>>
[src]

fn get_email_html(
    &self,
    email_id: &str,
    decode: Option<bool>
) -> Box<dyn Future<Item = String, Error = Error<Value>>>
[src]

fn get_email_html_query(
    &self,
    email_id: &str,
    html_selector: Option<&str>
) -> Box<dyn Future<Item = EmailTextLinesResult, Error = Error<Value>>>
[src]

fn get_email_text_lines(
    &self,
    email_id: &str,
    decode_html_entities: Option<bool>,
    line_separator: Option<&str>
) -> Box<dyn Future<Item = EmailTextLinesResult, Error = Error<Value>>>
[src]

fn get_emails_paginated(
    &self,
    inbox_id: Option<Vec<String>>,
    page: Option<i32>,
    size: Option<i32>,
    sort: Option<&str>,
    unread_only: Option<bool>
) -> Box<dyn Future<Item = PageEmailProjection, Error = Error<Value>>>
[src]

fn get_latest_email(
    &self,
    inbox_ids: Option<Vec<String>>
) -> Box<dyn Future<Item = Email, Error = Error<Value>>>
[src]

fn get_latest_email_in_inbox(
    &self,
    inbox_id: Option<&str>
) -> Box<dyn Future<Item = Email, Error = Error<Value>>>
[src]

fn get_organization_emails_paginated(
    &self,
    inbox_id: Option<Vec<String>>,
    page: Option<i32>,
    size: Option<i32>,
    sort: Option<&str>,
    unread_only: Option<bool>
) -> Box<dyn Future<Item = PageEmailProjection, Error = Error<Value>>>
[src]

fn get_raw_email_contents(
    &self,
    email_id: &str
) -> Box<dyn Future<Item = String, Error = Error<Value>>>
[src]

fn get_raw_email_json(
    &self,
    email_id: &str
) -> Box<dyn Future<Item = RawEmailJson, Error = Error<Value>>>
[src]

fn get_unread_email_count(
    &self
) -> Box<dyn Future<Item = UnreadCount, Error = Error<Value>>>
[src]

fn reply_to_email(
    &self,
    email_id: &str,
    reply_to_email_options: ReplyToEmailOptions
) -> Box<dyn Future<Item = SentEmailDto, Error = Error<Value>>>
[src]

fn validate_email(
    &self,
    email_id: &str
) -> Box<dyn Future<Item = ValidationDto, Error = Error<Value>>>
[src]

Loading content...

Implementors

impl<C: Connect> EmailControllerApi for EmailControllerApiClient<C>[src]

Loading content...