pub struct AvailableReactions {
pub top_reactions: Vec<AvailableReaction>,
pub recent_reactions: Vec<AvailableReaction>,
pub popular_reactions: Vec<AvailableReaction>,
pub allow_custom_emoji: bool,
}
Expand description
Represents a list of reactions that can be added to a message
Fields§
§top_reactions: Vec<AvailableReaction>
List of reactions to be shown at the top
recent_reactions: Vec<AvailableReaction>
List of recently used reactions
popular_reactions: Vec<AvailableReaction>
List of popular reactions
allow_custom_emoji: bool
True, if custom emoji reactions could be added by Telegram Premium subscribers
Trait Implementations§
Source§impl Clone for AvailableReactions
impl Clone for AvailableReactions
Source§fn clone(&self) -> AvailableReactions
fn clone(&self) -> AvailableReactions
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 AvailableReactions
impl Debug for AvailableReactions
Source§impl Default for AvailableReactions
impl Default for AvailableReactions
Source§fn default() -> AvailableReactions
fn default() -> AvailableReactions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AvailableReactions
impl<'de> Deserialize<'de> for AvailableReactions
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 AvailableReactions
impl PartialEq for AvailableReactions
Source§impl Serialize for AvailableReactions
impl Serialize for AvailableReactions
impl StructuralPartialEq for AvailableReactions
Auto Trait Implementations§
impl Freeze for AvailableReactions
impl RefUnwindSafe for AvailableReactions
impl Send for AvailableReactions
impl Sync for AvailableReactions
impl Unpin for AvailableReactions
impl UnwindSafe for AvailableReactions
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