pub enum Action<'a> {
Keep {
flags: &'a [&'a str],
message_id: usize,
},
Discard,
Reject {
extended: bool,
reason: &'a str,
},
FileInto {
folder: &'a str,
flags: &'a [&'a str],
mailbox_id: Option<&'a str>,
special_use: Option<&'a str>,
create: bool,
message_id: usize,
},
SendMessage {
source: MessageSource,
recipient: Recipient<'a>,
notify: Notify,
return_of_content: Ret,
by_time: ByTime<i64>,
message_id: usize,
},
Notify {
from: Option<&'a str>,
importance: Importance,
options: &'a [&'a str],
message: &'a str,
method: &'a str,
},
SetEnvelope {
envelope: Envelope,
value: &'a str,
},
CreatedMessage {
message_id: usize,
message: Vec<u8>,
},
}Variants§
Keep
Discard
Reject
FileInto
Fields
SendMessage
Fields
§
source: MessageSourceNotify
Fields
§
importance: ImportanceSetEnvelope
CreatedMessage
Trait Implementations§
impl<'a> Eq for Action<'a>
impl<'a> StructuralPartialEq for Action<'a>
Auto Trait Implementations§
impl<'a> Freeze for Action<'a>
impl<'a> RefUnwindSafe for Action<'a>
impl<'a> Send for Action<'a>
impl<'a> Sync for Action<'a>
impl<'a> Unpin for Action<'a>
impl<'a> UnsafeUnpin for Action<'a>
impl<'a> UnwindSafe for Action<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.