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>,
}

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

impl Clone for FilterCriteria[src]

impl Debug for FilterCriteria[src]

impl Default for FilterCriteria[src]

impl<'de> Deserialize<'de> for FilterCriteria[src]

impl Part for FilterCriteria[src]

impl Serialize for FilterCriteria[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.