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 moreSource§impl Debug for FilterCriteria
impl Debug for FilterCriteria
Source§impl Default for FilterCriteria
impl Default for FilterCriteria
Source§fn default() -> FilterCriteria
fn default() -> FilterCriteria
Source§impl<'de> Deserialize<'de> for FilterCriteria
impl<'de> Deserialize<'de> for FilterCriteria
Source§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>,
Source§impl Serialize for FilterCriteria
impl Serialize for FilterCriteria
impl Part for FilterCriteria
Auto Trait Implementations§
impl Freeze for FilterCriteria
impl RefUnwindSafe for FilterCriteria
impl Send for FilterCriteria
impl Sync for FilterCriteria
impl Unpin for FilterCriteria
impl UnwindSafe for FilterCriteria
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more