Struct frankenstein::api_params::SetMessageReactionParams
source · pub struct SetMessageReactionParams {
pub chat_id: ChatId,
pub message_id: i32,
pub reaction: Vec<ReactionType>,
pub is_big: Option<bool>,
}
Fields§
§chat_id: ChatId
§message_id: i32
§reaction: Vec<ReactionType>
§is_big: Option<bool>
Implementations§
source§impl SetMessageReactionParams
impl SetMessageReactionParams
sourcepub fn builder() -> SetMessageReactionParamsBuilder<((), (), (), ())>
pub fn builder() -> SetMessageReactionParamsBuilder<((), (), (), ())>
Create a builder for building SetMessageReactionParams
.
On the builder, call .chat_id(...)
, .message_id(...)
, .reaction(...)
, .is_big(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of SetMessageReactionParams
.
Trait Implementations§
source§impl Clone for SetMessageReactionParams
impl Clone for SetMessageReactionParams
source§fn clone(&self) -> SetMessageReactionParams
fn clone(&self) -> SetMessageReactionParams
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 SetMessageReactionParams
impl Debug for SetMessageReactionParams
source§impl<'de> Deserialize<'de> for SetMessageReactionParams
impl<'de> Deserialize<'de> for SetMessageReactionParams
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 SetMessageReactionParams
impl PartialEq for SetMessageReactionParams
source§fn eq(&self, other: &SetMessageReactionParams) -> bool
fn eq(&self, other: &SetMessageReactionParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SetMessageReactionParams
impl Serialize for SetMessageReactionParams
impl Eq for SetMessageReactionParams
impl StructuralPartialEq for SetMessageReactionParams
Auto Trait Implementations§
impl Freeze for SetMessageReactionParams
impl RefUnwindSafe for SetMessageReactionParams
impl Send for SetMessageReactionParams
impl Sync for SetMessageReactionParams
impl Unpin for SetMessageReactionParams
impl UnwindSafe for SetMessageReactionParams
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