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 a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.