Struct google_gmail1::api::FilterCriteria [−][src]
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
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for FilterCriteria
impl Send for FilterCriteria
impl Sync for FilterCriteria
impl Unpin for FilterCriteria
impl UnwindSafe for FilterCriteria
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more