pub struct MessageReactionCountUpdatedBuilder {
pub chat: BoxWrapper<Unbox<Chat>>,
pub message_id: i64,
pub date: i64,
pub reactions: Vec<ReactionCount>,
}Expand description
This object represents reaction changes on a message with anonymous reactions.
Fields§
§chat: BoxWrapper<Unbox<Chat>>The chat containing the message
message_id: i64Unique message identifier inside the chat
date: i64Date of the change in Unix time
reactions: Vec<ReactionCount>List of reactions that are present on the message
Implementations§
source§impl MessageReactionCountUpdatedBuilder
impl MessageReactionCountUpdatedBuilder
pub fn new<A: Into<Chat>>( chat: A, message_id: i64, date: i64, reactions: Vec<ReactionCount>, ) -> Self
sourcepub fn set_message_id(self, message_id: i64) -> Self
pub fn set_message_id(self, message_id: i64) -> Self
Unique message identifier inside the chat
sourcepub fn set_reactions(self, reactions: Vec<ReactionCount>) -> Self
pub fn set_reactions(self, reactions: Vec<ReactionCount>) -> Self
List of reactions that are present on the message
pub fn build(self) -> MessageReactionCountUpdated
Trait Implementations§
source§impl Clone for MessageReactionCountUpdatedBuilder
impl Clone for MessageReactionCountUpdatedBuilder
source§fn clone(&self) -> MessageReactionCountUpdatedBuilder
fn clone(&self) -> MessageReactionCountUpdatedBuilder
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 Default for MessageReactionCountUpdatedBuilder
impl Default for MessageReactionCountUpdatedBuilder
source§fn default() -> MessageReactionCountUpdatedBuilder
fn default() -> MessageReactionCountUpdatedBuilder
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MessageReactionCountUpdatedBuilder
impl<'de> Deserialize<'de> for MessageReactionCountUpdatedBuilder
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 Ord for MessageReactionCountUpdatedBuilder
impl Ord for MessageReactionCountUpdatedBuilder
source§fn cmp(&self, other: &MessageReactionCountUpdatedBuilder) -> Ordering
fn cmp(&self, other: &MessageReactionCountUpdatedBuilder) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MessageReactionCountUpdatedBuilder
impl PartialEq for MessageReactionCountUpdatedBuilder
source§fn eq(&self, other: &MessageReactionCountUpdatedBuilder) -> bool
fn eq(&self, other: &MessageReactionCountUpdatedBuilder) -> bool
Tests for
self and other values to be equal, and is used by ==.source§impl PartialOrd for MessageReactionCountUpdatedBuilder
impl PartialOrd for MessageReactionCountUpdatedBuilder
impl Eq for MessageReactionCountUpdatedBuilder
impl StructuralPartialEq for MessageReactionCountUpdatedBuilder
Auto Trait Implementations§
impl Freeze for MessageReactionCountUpdatedBuilder
impl RefUnwindSafe for MessageReactionCountUpdatedBuilder
impl Send for MessageReactionCountUpdatedBuilder
impl Sync for MessageReactionCountUpdatedBuilder
impl Unpin for MessageReactionCountUpdatedBuilder
impl UnwindSafe for MessageReactionCountUpdatedBuilder
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.