Struct tg_flows::InlineQueryResultGame
source · pub struct InlineQueryResultGame {
pub id: String,
pub game_short_name: String,
pub reply_markup: Option<InlineKeyboardMarkup>,
}Expand description
Represents a game.
Fields§
§id: StringUnique identifier for this result, 1-64 bytes.
game_short_name: StringShort name of the game.
reply_markup: Option<InlineKeyboardMarkup>Inline keyboard attached to the message.
Implementations§
source§impl InlineQueryResultGame
impl InlineQueryResultGame
pub fn new<S1, S2>(id: S1, game_short_name: S2) -> Selfwhere S1: Into<String>, S2: Into<String>,
pub fn id<S>(self, val: S) -> Selfwhere S: Into<String>,
pub fn game_short_name<S>(self, val: S) -> Selfwhere S: Into<String>,
pub fn reply_markup(self, val: InlineKeyboardMarkup) -> Self
Trait Implementations§
source§impl Clone for InlineQueryResultGame
impl Clone for InlineQueryResultGame
source§fn clone(&self) -> InlineQueryResultGame
fn clone(&self) -> InlineQueryResultGame
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 InlineQueryResultGame
impl Debug for InlineQueryResultGame
source§impl<'de> Deserialize<'de> for InlineQueryResultGame
impl<'de> Deserialize<'de> for InlineQueryResultGame
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 From<InlineQueryResultGame> for InlineQueryResult
impl From<InlineQueryResultGame> for InlineQueryResult
source§fn from(original: InlineQueryResultGame) -> InlineQueryResult
fn from(original: InlineQueryResultGame) -> InlineQueryResult
Converts to this type from the input type.
source§impl Hash for InlineQueryResultGame
impl Hash for InlineQueryResultGame
source§impl PartialEq<InlineQueryResultGame> for InlineQueryResultGame
impl PartialEq<InlineQueryResultGame> for InlineQueryResultGame
source§fn eq(&self, other: &InlineQueryResultGame) -> bool
fn eq(&self, other: &InlineQueryResultGame) -> bool
This method tests for
self and other values to be equal, and is used
by ==.