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