pub struct MessageInteractions {
pub reactions: Option<Option<Vec<String>>>,
pub restrict_reactions: Option<bool>,
}Expand description
MessageInteractions : Information about how this message should be interacted with
Fields§
§reactions: Option<Option<Vec<String>>>Reactions which should always appear and be distinct
restrict_reactions: Option<bool>Whether reactions should be restricted to the given list Can only be set to true if reactions list is of at least length 1
Implementations§
Source§impl MessageInteractions
impl MessageInteractions
Sourcepub fn new() -> MessageInteractions
pub fn new() -> MessageInteractions
Information about how this message should be interacted with
Trait Implementations§
Source§impl Clone for MessageInteractions
impl Clone for MessageInteractions
Source§fn clone(&self) -> MessageInteractions
fn clone(&self) -> MessageInteractions
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 moreSource§impl Debug for MessageInteractions
impl Debug for MessageInteractions
Source§impl Default for MessageInteractions
impl Default for MessageInteractions
Source§fn default() -> MessageInteractions
fn default() -> MessageInteractions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageInteractions
impl<'de> Deserialize<'de> for MessageInteractions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MessageInteractions
impl PartialEq for MessageInteractions
Source§fn eq(&self, other: &MessageInteractions) -> bool
fn eq(&self, other: &MessageInteractions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MessageInteractions
impl Serialize for MessageInteractions
impl StructuralPartialEq for MessageInteractions
Auto Trait Implementations§
impl Freeze for MessageInteractions
impl RefUnwindSafe for MessageInteractions
impl Send for MessageInteractions
impl Sync for MessageInteractions
impl Unpin for MessageInteractions
impl UnsafeUnpin for MessageInteractions
impl UnwindSafe for MessageInteractions
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