pub trait MessageList {
// Required methods
fn log_message_subjects(
&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§
Sourcefn log_message_subjects(&mut self) -> impl Future<Output = Result<()>> + Send
fn log_message_subjects(&mut self) -> impl Future<Output = Result<()>> + Send
Log the initial characters of the subjects of the message in the list
Sourcefn messages_list(
&mut self,
next_page_token: Option<String>,
) -> impl Future<Output = Result<ListMessagesResponse>> + Send
fn messages_list( &mut self, next_page_token: Option<String>, ) -> impl Future<Output = Result<ListMessagesResponse>> + Send
List of messages
Sourcefn get_messages(
&mut self,
pages: u32,
) -> impl Future<Output = Result<()>> + Send
fn get_messages( &mut self, pages: u32, ) -> impl Future<Output = Result<()>> + Send
Run something
Sourcefn hub(&self) -> Gmail<HttpsConnector<HttpConnector>>
fn hub(&self) -> Gmail<HttpsConnector<HttpConnector>>
Return the gmail hub
Sourcefn message_ids(&self) -> Vec<String>
fn message_ids(&self) -> Vec<String>
Return the list of message ids
Sourcefn add_labels_ids(&mut self, label_ids: &[String])
fn add_labels_ids(&mut self, label_ids: &[String])
Add label ids to the list of labels for the message list
Sourcefn add_labels(&mut self, labels: &[String]) -> Result<()>
fn add_labels(&mut self, labels: &[String]) -> Result<()>
Add labels to the list of labels for the message list
Sourcefn max_results(&self) -> u32
fn max_results(&self) -> u32
Report the max results value set
Sourcefn set_max_results(&mut self, value: u32)
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.