pub enum StickerSource {
Genmoji,
Memoji,
UserGenerated,
App(String),
}Expand description
Source that created a sticker attachment.
Variants§
Genmoji
A Genmoji
Memoji
A Memoji
UserGenerated
User-created sticker.
App(String)
Sticker from an iMessage sticker app.
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>
Resolve a sticker source from the sticker app bundle ID.
§Example
use imessage_database::message_types::sticker::StickerSource;
println!("{:?}", StickerSource::from_bundle_id("com.apple.messages.genmoji")); // Some(Genmoji)Trait Implementations§
Source§impl Debug for StickerSource
impl Debug for StickerSource
impl Eq for StickerSource
Source§impl PartialEq for StickerSource
impl PartialEq for StickerSource
Source§fn eq(&self, other: &StickerSource) -> bool
fn eq(&self, other: &StickerSource) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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.