MessageList

Trait MessageList 

Source
pub trait MessageList {
    // Required methods
    fn log_messages(&mut self) -> impl Future<Output = Result<()>> + Send;
    fn messages_list(
        &mut self,
        next_page_token: Option<String>,
    ) -> impl Future<Output = Result<ListMessagesResponse>> + Send;
    fn get_messages(
        &mut self,
        pages: u32,
    ) -> impl Future<Output = Result<()>> + Send;
    fn hub(&self) -> Gmail<HttpsConnector<HttpConnector>>;
    fn label_ids(&self) -> Vec<String>;
    fn message_ids(&self) -> Vec<String>;
    fn messages(&self) -> &Vec<MessageSummary>;
    fn set_query(&mut self, query: &str);
    fn add_labels_ids(&mut self, label_ids: &[String]);
    fn add_labels(&mut self, labels: &[String]) -> Result<()>;
    fn max_results(&self) -> u32;
    fn set_max_results(&mut self, value: u32);
}
Expand description

Methods to select lists of messages from the mailbox

Required Methods§

Source

fn log_messages(&mut self) -> impl Future<Output = Result<()>> + Send

Log the initial characters of the subjects of the message in the list

Source

fn messages_list( &mut self, next_page_token: Option<String>, ) -> impl Future<Output = Result<ListMessagesResponse>> + Send

List of messages

Source

fn get_messages( &mut self, pages: u32, ) -> impl Future<Output = Result<()>> + Send

Run something

Source

fn hub(&self) -> Gmail<HttpsConnector<HttpConnector>>

Return the gmail hub

Source

fn label_ids(&self) -> Vec<String>

Return the list of label_ids

Source

fn message_ids(&self) -> Vec<String>

Return the list of message ids

Source

fn messages(&self) -> &Vec<MessageSummary>

Return a summary of the messages (id and summary)

Source

fn set_query(&mut self, query: &str)

Set the query for the message list

Source

fn add_labels_ids(&mut self, label_ids: &[String])

Add label ids to the list of labels for the message list

Source

fn add_labels(&mut self, labels: &[String]) -> Result<()>

Add labels to the list of labels for the message list

Source

fn max_results(&self) -> u32

Report the max results value set

Source

fn set_max_results(&mut self, value: u32)

Set the max_results value

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§