#[non_exhaustive]pub enum EmojiSetOp {
Create,
Update,
Destroy,
}Expand description
Identifies the kind of CustomEmoji/set operation being authorized by
SpacePolicy::may_set_custom_emoji.
Per draft-atwood-jmap-chat-00 commit 9344aec (2026-05-11, “refactor:
implementation-defined emoji authorization”), authorization for
CustomEmoji/set is fully implementation-defined for both server-global
and Space-scoped emoji. The kit forwards the op kind so the backend can
apply different policies per op (e.g. allow create+update but require
elevated rights for destroy).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Create
CustomEmoji/set create — a new emoji is being added.
Update
CustomEmoji/set update — an existing emoji’s mutable fields
(currently name and blobId) are being patched.
Destroy
CustomEmoji/set destroy — an existing emoji is being removed.
Trait Implementations§
Source§impl Clone for EmojiSetOp
impl Clone for EmojiSetOp
impl Copy for EmojiSetOp
Source§impl Debug for EmojiSetOp
impl Debug for EmojiSetOp
impl Eq for EmojiSetOp
Source§impl PartialEq for EmojiSetOp
impl PartialEq for EmojiSetOp
impl StructuralPartialEq for EmojiSetOp
Auto Trait Implementations§
impl Forget for EmojiSetOp
impl Freeze for EmojiSetOp
impl Move for EmojiSetOp
impl RefUnwindSafe for EmojiSetOp
impl Send for EmojiSetOp
impl Sync for EmojiSetOp
impl Unpin for EmojiSetOp
impl UnsafeUnpin for EmojiSetOp
impl UnwindSafe for EmojiSetOp
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.