pub struct MessageReaction { /* private fields */ }Expand description
Wraps INMessageReaction.
Implementations§
Source§impl MessageReaction
impl MessageReaction
Sourcepub const OBJC_CLASS: &'static str = "INMessageReaction"
pub const OBJC_CLASS: &'static str = "INMessageReaction"
Objective-C class name for INMessageReaction.
Sourcepub fn class_name(&self) -> String
pub fn class_name(&self) -> String
Returns the Objective-C class name for this INMessageReaction instance.
Source§impl MessageReaction
impl MessageReaction
Sourcepub fn new(
reaction_type: MessageReactionType,
reaction_description: Option<&str>,
emoji: Option<&str>,
) -> Result<Self, IntentsError>
pub fn new( reaction_type: MessageReactionType, reaction_description: Option<&str>, emoji: Option<&str>, ) -> Result<Self, IntentsError>
Creates a INMessageReaction wrapper.
Sourcepub fn reaction_type(&self) -> MessageReactionType
pub fn reaction_type(&self) -> MessageReactionType
Returns the corresponding value from INMessageReaction.
Sourcepub fn reaction_description(&self) -> Option<String>
pub fn reaction_description(&self) -> Option<String>
Returns the corresponding value from INMessageReaction.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MessageReaction
impl RefUnwindSafe for MessageReaction
impl !Send for MessageReaction
impl !Sync for MessageReaction
impl Unpin for MessageReaction
impl UnsafeUnpin for MessageReaction
impl UnwindSafe for MessageReaction
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