Enum imap_codec::types::command::SearchKey[][src]

pub enum SearchKey {
Show 37 variants And(NonEmptyVec<SearchKey>), SequenceSet(SequenceSet), All, Answered, Bcc(AString), Before(MyNaiveDate), Body(AString), Cc(AString), Deleted, Draft, Flagged, From(AString), Header(AStringAString), Keyword(Atom), Larger(u32), New, Not(Box<SearchKey>), Old, On(MyNaiveDate), Or(Box<SearchKey>, Box<SearchKey>), Recent, Seen, SentBefore(MyNaiveDate), SentOn(MyNaiveDate), SentSince(MyNaiveDate), Since(MyNaiveDate), Smaller(u32), Subject(AString), Text(AString), To(AString), Uid(SequenceSet), Unanswered, Undeleted, Undraft, Unflagged, Unkeyword(Atom), Unseen,
}
Expand description

The defined search keys.

Variants

Tuple Fields of And

0: NonEmptyVec<SearchKey>
SequenceSet(SequenceSet)

Messages with message sequence numbers corresponding to the specified message sequence number set.

Tuple Fields of SequenceSet

0: SequenceSet
All

All messages in the mailbox; the default initial key for ANDing.

Answered

Messages with the \Answered flag set.

Bcc(AString)

Messages that contain the specified string in the envelope structure’s BCC field.

Tuple Fields of Bcc

0: AString
Before(MyNaiveDate)

Messages whose internal date (disregarding time and timezone) is earlier than the specified date.

Tuple Fields of Before

0: MyNaiveDate
Body(AString)

Messages that contain the specified string in the body of the message.

Tuple Fields of Body

0: AString

Messages that contain the specified string in the envelope structure’s CC field.

Tuple Fields of Cc

0: AString
Deleted

Messages with the \Deleted flag set.

Draft

Messages with the \Draft flag set.

Flagged

Messages with the \Flagged flag set.

From(AString)

Messages that contain the specified string in the envelope structure’s FROM field.

Tuple Fields of From

0: AString
Header(AStringAString)

Messages that have a header with the specified field-name (as defined in [RFC-2822]) and that contains the specified string in the text of the header (what comes after the colon). If the string to search is zero-length, this matches all messages that have a header line with the specified field-name regardless of the contents.

Tuple Fields of Header

0: AString1: AString
Keyword(Atom)

Messages with the specified keyword flag set.

Tuple Fields of Keyword

0: Atom
Larger(u32)

Messages with an [RFC-2822] size larger than the specified number of octets.

Tuple Fields of Larger

0: u32
New

Messages that have the \Recent flag set but not the \Seen flag. This is functionally equivalent to “(RECENT UNSEEN)”.

Messages that do not match the specified search key.

Tuple Fields of Not

0: Box<SearchKey>
Old

Messages that do not have the \Recent flag set. This is functionally equivalent to “NOT RECENT” (as opposed to “NOT NEW”).

Messages whose internal date (disregarding time and timezone) is within the specified date.

Tuple Fields of On

0: MyNaiveDate

Messages that match either search key.

Tuple Fields of Or

0: Box<SearchKey>1: Box<SearchKey>
Recent

Messages that have the \Recent flag set.

Seen

Messages that have the \Seen flag set.

SentBefore(MyNaiveDate)

Messages whose [RFC-2822] Date: header (disregarding time and timezone) is earlier than the specified date.

Tuple Fields of SentBefore

0: MyNaiveDate
SentOn(MyNaiveDate)

Messages whose [RFC-2822] Date: header (disregarding time and timezone) is within the specified date.

Tuple Fields of SentOn

0: MyNaiveDate
SentSince(MyNaiveDate)

Messages whose [RFC-2822] Date: header (disregarding time and timezone) is within or later than the specified date.

Tuple Fields of SentSince

0: MyNaiveDate

Messages whose internal date (disregarding time and timezone) is within or later than the specified date.

Tuple Fields of Since

0: MyNaiveDate
Smaller(u32)

Messages with an [RFC-2822] size smaller than the specified number of octets.

Tuple Fields of Smaller

0: u32
Subject(AString)

Messages that contain the specified string in the envelope structure’s SUBJECT field.

Tuple Fields of Subject

0: AString
Text(AString)

Messages that contain the specified string in the header or body of the message.

Tuple Fields of Text

0: AString

Messages that contain the specified string in the envelope structure’s TO field.

Tuple Fields of To

0: AString

Messages with unique identifiers corresponding to the specified unique identifier set. Sequence set ranges are permitted.

Tuple Fields of Uid

0: SequenceSet
Unanswered

Messages that do not have the \Answered flag set.

Undeleted

Messages that do not have the \Deleted flag set.

Undraft

Messages that do not have the \Draft flag set.

Unflagged

Messages that do not have the \Flagged flag set.

Unkeyword(Atom)

Messages that do not have the specified keyword flag set.

Tuple Fields of Unkeyword

0: Atom
Unseen

Messages that do not have the \Seen flag set.

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

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Converts self into T using Into<T>. Read more

Converts self into a target type. Read more

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Performs the conversion.

Performs the conversion.

Pipes by value. This is generally the method you want to use. Read more

Borrows self and passes that borrow into the pipe function. Read more

Mutably borrows self and passes that borrow into the pipe function. Read more

Borrows self, then passes self.borrow() into the pipe function. Read more

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more

Borrows self, then passes self.as_ref() into the pipe function.

Mutably borrows self, then passes self.as_mut() into the pipe function. Read more

Borrows self, then passes self.deref() into the pipe function.

Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more

Pipes a value into a function that cannot ordinarily be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a dereference into a function that cannot normally be called in suffix position. Read more

Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more

Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more

Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more

Immutable access to a value. Read more

Mutable access to a value. Read more

Immutable access to the Borrow<B> of a value. Read more

Mutable access to the BorrowMut<B> of a value. Read more

Immutable access to the AsRef<R> view of a value. Read more

Mutable access to the AsMut<R> view of a value. Read more

Immutable access to the Deref::Target of a value. Read more

Mutable access to the Deref::Target of a value. Read more

Calls .tap() only in debug builds, and is erased in release builds.

Calls .tap_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more

Provides immutable access for inspection. Read more

Calls tap in debug builds, and does nothing in release builds.

Provides mutable access for modification. Read more

Calls tap_mut in debug builds, and does nothing in release builds.

Provides immutable access to the reference for inspection.

Calls tap_ref in debug builds, and does nothing in release builds.

Provides mutable access to the reference for modification.

Calls tap_ref_mut in debug builds, and does nothing in release builds.

Provides immutable access to the borrow for inspection. Read more

Calls tap_borrow in debug builds, and does nothing in release builds.

Provides mutable access to the borrow for modification.

Calls tap_borrow_mut in debug builds, and does nothing in release builds. Read more

Immutably dereferences self for inspection.

Calls tap_deref in debug builds, and does nothing in release builds.

Mutably dereferences self for modification.

Calls tap_deref_mut in debug builds, and does nothing in release builds. Read more

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

Attempts to convert self into T using TryInto<T>. Read more

Attempts to convert self into a target type. 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.