pub enum MutationCommand {
Archive {
message_ids: Vec<MessageId>,
},
Trash {
message_ids: Vec<MessageId>,
},
Spam {
message_ids: Vec<MessageId>,
},
Star {
message_ids: Vec<MessageId>,
starred: bool,
},
SetRead {
message_ids: Vec<MessageId>,
read: bool,
},
ModifyLabels {
message_ids: Vec<MessageId>,
add: Vec<String>,
remove: Vec<String>,
},
Move {
message_ids: Vec<MessageId>,
target_label: String,
},
}Expand description
Mutation commands for modifying messages.
Variants§
Trait Implementations§
Source§impl Clone for MutationCommand
impl Clone for MutationCommand
Source§fn clone(&self) -> MutationCommand
fn clone(&self) -> MutationCommand
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 moreSource§impl Debug for MutationCommand
impl Debug for MutationCommand
Source§impl<'de> Deserialize<'de> for MutationCommand
impl<'de> Deserialize<'de> for MutationCommand
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MutationCommand
impl RefUnwindSafe for MutationCommand
impl Send for MutationCommand
impl Sync for MutationCommand
impl Unpin for MutationCommand
impl UnsafeUnpin for MutationCommand
impl UnwindSafe for MutationCommand
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