#[non_exhaustive]pub struct SelectOptions {
pub condstore: bool,
pub qresync: Option<QresyncParams>,
}Expand description
Options for SELECT/EXAMINE commands beyond the basic mailbox name (RFC 3501 Sections 6.3.1/6.3.2, RFC 7162 Sections 3.1.8 and 3.2.5.2).
Used with [ImapConnection::select_with] and [ImapConnection::examine_with]
to request CONDSTORE or QRESYNC extensions without requiring separate method
variants for each combination.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.condstore: boolEnable CONDSTORE per-message mod-sequence tracking (RFC 7162 Section 3.1.1).
When true, the server includes HIGHESTMODSEQ in the OK response
and tracks per-message MODSEQ values for the selected mailbox.
Requires the CONDSTORE or QRESYNC capability (RFC 7162 Section 3.1).
qresync: Option<QresyncParams>QRESYNC parameters for efficient delta sync (RFC 7162 Section 3.2.5.2).
Provides the server with the client’s last known UIDVALIDITY and MODSEQ
so it can send VANISHED (EARLIER) and FETCH (FLAGS) for changed
messages instead of a full resync.
Requires the QRESYNC capability to have been enabled first
(RFC 7162 Section 3.2.5).
Implementations§
Source§impl SelectOptions
impl SelectOptions
Sourcepub fn qresync(params: QresyncParams) -> Self
pub fn qresync(params: QresyncParams) -> Self
Create options with QRESYNC parameters (RFC 7162 Section 3.2.5.2).
Trait Implementations§
Source§impl Clone for SelectOptions
impl Clone for SelectOptions
Source§fn clone(&self) -> SelectOptions
fn clone(&self) -> SelectOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more