pub struct Interactions {
pub reactions: Option<HashSet<String>>,
pub restrict_reactions: bool,
}
Expand description
Information to guide interactions on this message
Fields§
§reactions: Option<HashSet<String>>
Reactions which should always appear and be distinct
restrict_reactions: bool
Whether reactions should be restricted to the given list
Trait Implementations§
Source§impl Clone for Interactions
impl Clone for Interactions
Source§fn clone(&self) -> Interactions
fn clone(&self) -> Interactions
Returns a copy of the value. Read more
1.0.0 · 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 Interactions
impl Debug for Interactions
Source§impl Default for Interactions
impl Default for Interactions
Source§fn default() -> Interactions
fn default() -> Interactions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Interactions
impl<'de> Deserialize<'de> for Interactions
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
Auto Trait Implementations§
impl Freeze for Interactions
impl RefUnwindSafe for Interactions
impl Send for Interactions
impl Sync for Interactions
impl Unpin for Interactions
impl UnwindSafe for Interactions
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