pub enum StickerSource {
Genmoji,
Memoji,
UserGenerated,
App(String),
}Expand description
Represents the source that created a sticker attachment
Variants§
Genmoji
A Genmoji
Memoji
A Memoji
UserGenerated
User-created stickers
App(String)
Application provided stickers
Implementations§
Source§impl StickerSource
impl StickerSource
Sourcepub fn from_bundle_id(bundle_id: &str) -> Option<Self>
pub fn from_bundle_id(bundle_id: &str) -> Option<Self>
Given an application’s bundle ID, determine the source
§Example
use imessage_database::message_types::sticker::StickerSource;;
println!("{:?}", StickerSource::from_bundle_id("com.apple.messages.genmoji")); // StickerSource::GenmojiTrait Implementations§
Source§impl Debug for StickerSource
impl Debug for StickerSource
Source§impl PartialEq for StickerSource
impl PartialEq for StickerSource
impl Eq for StickerSource
impl StructuralPartialEq for StickerSource
Auto Trait Implementations§
impl Freeze for StickerSource
impl RefUnwindSafe for StickerSource
impl Send for StickerSource
impl Sync for StickerSource
impl Unpin for StickerSource
impl UnwindSafe for StickerSource
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<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.