Struct google_gmail1::FilterCriteria
source · pub struct FilterCriteria {
pub size: Option<i32>,
pub from: Option<String>,
pub has_attachment: Option<bool>,
pub size_comparison: Option<String>,
pub to: Option<String>,
pub query: Option<String>,
pub exclude_chats: Option<bool>,
pub negated_query: Option<String>,
pub subject: Option<String>,
}Expand description
Message matching criteria.
This type is not used in any activity, and only used as part of another schema.
Fields§
§size: Option<i32>The size of the entire RFC822 message in bytes, including all headers and attachments.
from: Option<String>The sender’s display name or email address.
has_attachment: Option<bool>Whether the message has any attachment.
size_comparison: Option<String>How the message size in bytes should be in relation to the size field.
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.
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”.
exclude_chats: Option<bool>Whether the response should exclude chats.
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”.
subject: Option<String>Case-insensitive phrase found in the message’s subject. Trailing and leading whitespace are be trimmed and adjacent spaces are collapsed.
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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