Struct frankenstein::api_params::SendStickerParams
source · pub struct SendStickerParams {
pub business_connection_id: Option<String>,
pub chat_id: ChatId,
pub message_thread_id: Option<i32>,
pub sticker: FileUpload,
pub emoji: Option<String>,
pub disable_notification: Option<bool>,
pub protect_content: Option<bool>,
pub reply_parameters: Option<ReplyParameters>,
pub reply_markup: Option<ReplyMarkup>,
}
Fields§
§business_connection_id: Option<String>
§chat_id: ChatId
§message_thread_id: Option<i32>
§sticker: FileUpload
§emoji: Option<String>
§disable_notification: Option<bool>
§protect_content: Option<bool>
§reply_parameters: Option<ReplyParameters>
§reply_markup: Option<ReplyMarkup>
Implementations§
source§impl SendStickerParams
impl SendStickerParams
sourcepub fn builder(
) -> SendStickerParamsBuilder<((), (), (), (), (), (), (), (), ())>
pub fn builder( ) -> SendStickerParamsBuilder<((), (), (), (), (), (), (), (), ())>
Create a builder for building SendStickerParams
.
On the builder, call .business_connection_id(...)
(optional), .chat_id(...)
, .message_thread_id(...)
(optional), .sticker(...)
, .emoji(...)
(optional), .disable_notification(...)
(optional), .protect_content(...)
(optional), .reply_parameters(...)
(optional), .reply_markup(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of SendStickerParams
.
Trait Implementations§
source§impl Clone for SendStickerParams
impl Clone for SendStickerParams
source§fn clone(&self) -> SendStickerParams
fn clone(&self) -> SendStickerParams
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 SendStickerParams
impl Debug for SendStickerParams
source§impl<'de> Deserialize<'de> for SendStickerParams
impl<'de> Deserialize<'de> for SendStickerParams
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 SendStickerParams
impl PartialEq for SendStickerParams
source§fn eq(&self, other: &SendStickerParams) -> bool
fn eq(&self, other: &SendStickerParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SendStickerParams
impl Serialize for SendStickerParams
impl Eq for SendStickerParams
impl StructuralPartialEq for SendStickerParams
Auto Trait Implementations§
impl Freeze for SendStickerParams
impl RefUnwindSafe for SendStickerParams
impl Send for SendStickerParams
impl Sync for SendStickerParams
impl Unpin for SendStickerParams
impl UnwindSafe for SendStickerParams
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