pub enum JmapEmailPatchOp {
SetKeyword(String),
UnsetKeyword(String),
ReplaceKeywords(BTreeMap<String, bool>),
AddToMailbox(String),
RemoveFromMailbox(String),
ReplaceMailboxIds(BTreeMap<String, bool>),
}Expand description
A single operation in an Email/set update patch (RFC 8621 §4.7). Each
variant serialises as a JSON Pointer entry in a flat patch object.
Variants§
SetKeyword(String)
Set a keyword: "keywords/<kw>": true
UnsetKeyword(String)
Unset a keyword: "keywords/<kw>": null
ReplaceKeywords(BTreeMap<String, bool>)
Replace all keywords atomically: "keywords": { ... }
AddToMailbox(String)
Add email to a mailbox: "mailboxIds/<id>": true
RemoveFromMailbox(String)
Remove email from a mailbox: "mailboxIds/<id>": null
ReplaceMailboxIds(BTreeMap<String, bool>)
Replace mailbox membership atomically: "mailboxIds": { ... }
Trait Implementations§
Source§impl Clone for JmapEmailPatchOp
impl Clone for JmapEmailPatchOp
Source§fn clone(&self) -> JmapEmailPatchOp
fn clone(&self) -> JmapEmailPatchOp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JmapEmailPatchOp
impl RefUnwindSafe for JmapEmailPatchOp
impl Send for JmapEmailPatchOp
impl Sync for JmapEmailPatchOp
impl Unpin for JmapEmailPatchOp
impl UnsafeUnpin for JmapEmailPatchOp
impl UnwindSafe for JmapEmailPatchOp
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