pub struct FilterCriteria {
pub exclude_chats: Option<bool>,
pub from: Option<String>,
pub has_attachment: Option<bool>,
pub negated_query: Option<String>,
pub query: Option<String>,
pub size: Option<i32>,
pub size_comparison: Option<String>,
pub subject: Option<String>,
pub to: Option<String>,
}Expand description
Message matching criteria.
This type is not used in any activity, and only used as part of another schema.
Fields§
§exclude_chats: Option<bool>Whether the response should exclude chats.
from: Option<String>The sender’s display name or email address.
has_attachment: Option<bool>Whether the message has any attachment.
negated_query: Option<String>Only return messages not matching the specified query. Supports the same query format as the Gmail search box. For example, "from:someuser@example.com rfc822msgid: is:unread".
query: Option<String>Only return messages matching the specified query. Supports the same query format as the Gmail search box. For example, "from:someuser@example.com rfc822msgid: is:unread".
size: Option<i32>The size of the entire RFC822 message in bytes, including all headers and attachments.
size_comparison: Option<String>How the message size in bytes should be in relation to the size field.
subject: Option<String>Case-insensitive phrase found in the message’s subject. Trailing and leading whitespace are be trimmed and adjacent spaces are collapsed.
to: Option<String>The recipient’s display name or email address. Includes recipients in the “to”, “cc”, and “bcc” header fields. You can use simply the local part of the email address. For example, “example” and “example@” both match “example@gmail.com”. This field is case-insensitive.
Trait Implementations§
Source§impl Clone for FilterCriteria
impl Clone for FilterCriteria
Source§fn clone(&self) -> FilterCriteria
fn clone(&self) -> FilterCriteria
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more