Struct teloxide::types::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: String
Unique identifier for this result, 1-64 bytes.
game_short_name: String
Short 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) -> InlineQueryResultGamewhere
S1: Into<String>,
S2: Into<String>,
pub fn id<S>(self, val: S) -> InlineQueryResultGamewhere
S: Into<String>,
pub fn game_short_name<S>(self, val: S) -> InlineQueryResultGamewhere
S: Into<String>,
pub fn reply_markup(self, val: InlineKeyboardMarkup) -> InlineQueryResultGame
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<InlineQueryResultGame, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<InlineQueryResultGame, <__D as Deserializer<'de>>::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 ==
.source§impl Serialize for InlineQueryResultGame
impl Serialize for InlineQueryResultGame
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for InlineQueryResultGame
impl StructuralEq for InlineQueryResultGame
impl StructuralPartialEq for InlineQueryResultGame
Auto Trait Implementations§
impl RefUnwindSafe for InlineQueryResultGame
impl Send for InlineQueryResultGame
impl Sync for InlineQueryResultGame
impl Unpin for InlineQueryResultGame
impl UnwindSafe for InlineQueryResultGame
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.