pub enum ImapCommand {
Show 26 variants
Login {
user: String,
password: String,
},
Select {
mailbox: String,
},
Examine {
mailbox: String,
},
Fetch {
sequence: String,
items: Vec<String>,
},
Store {
sequence: String,
mode: StoreMode,
flags: Vec<String>,
},
Search {
criteria: Vec<String>,
},
List {
reference: String,
mailbox: String,
},
Lsub {
reference: String,
mailbox: String,
},
Subscribe {
mailbox: String,
},
Unsubscribe {
mailbox: String,
},
Create {
mailbox: String,
},
CreateSpecialUse {
mailbox: String,
special_use: String,
},
Delete {
mailbox: String,
},
Rename {
old: String,
new: String,
},
Append {
mailbox: String,
flags: Vec<String>,
date_time: Option<String>,
message_literal: Vec<u8>,
},
Copy {
sequence: String,
mailbox: String,
},
Move {
sequence: String,
mailbox: String,
},
Expunge,
Close,
Capability,
Logout,
Noop,
Idle,
Namespace,
Authenticate {
mechanism: String,
initial_response: Option<String>,
},
Uid {
subcommand: Box<UidSubcommand>,
},
}Expand description
IMAP commands
Variants§
Login
LOGIN user password
Select
SELECT mailbox
Examine
EXAMINE mailbox
Fetch
FETCH sequence data
Store
STORE sequence flags (with mode: FLAGS, +FLAGS, -FLAGS)
Search
SEARCH criteria
List
LIST reference mailbox
Lsub
LSUB reference mailbox
Subscribe
SUBSCRIBE mailbox
Unsubscribe
UNSUBSCRIBE mailbox
Create
CREATE mailbox
CreateSpecialUse
CREATE-SPECIAL-USE mailbox special-use-attr (RFC 6154)
Delete
DELETE mailbox
Rename
RENAME old new
Append
APPEND mailbox [flags] [date-time] literal
Copy
COPY sequence mailbox
Move
MOVE sequence mailbox (RFC 6851)
Expunge
EXPUNGE (permanently delete messages with \Deleted flag)
Close
CLOSE (implicit expunge + deselect)
Capability
CAPABILITY
Logout
LOGOUT
Noop
NOOP
Idle
IDLE (RFC 2177) - push notifications
Namespace
NAMESPACE (RFC 2342) - mailbox namespace discovery
Authenticate
AUTHENTICATE mechanism [initial-response] (RFC 3501 Section 6.2.2)
Uid
UID command variants (RFC 9051 Section 6.4.8)
Fields
§
subcommand: Box<UidSubcommand>Trait Implementations§
Source§impl Clone for ImapCommand
impl Clone for ImapCommand
Source§fn clone(&self) -> ImapCommand
fn clone(&self) -> ImapCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ImapCommand
impl RefUnwindSafe for ImapCommand
impl Send for ImapCommand
impl Sync for ImapCommand
impl Unpin for ImapCommand
impl UnsafeUnpin for ImapCommand
impl UnwindSafe for ImapCommand
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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