Struct tgbot::types::InlineQueryResultGame
source · pub struct InlineQueryResultGame { /* private fields */ }
Expand description
Represents a game.
Implementations§
source§impl InlineQueryResultGame
impl InlineQueryResultGame
sourcepub fn new<A, B>(game_short_name: A, id: B) -> Self
pub fn new<A, B>(game_short_name: A, id: B) -> Self
Creates a new InlineQueryResultGame
.
§Arguments
game_short_name
- Short name of the game.id
- Unique identifier of the result; 1-64 bytes.
sourcepub fn with_reply_markup<T>(self, value: T) -> Selfwhere
T: Into<InlineKeyboardMarkup>,
pub fn with_reply_markup<T>(self, value: T) -> Selfwhere
T: Into<InlineKeyboardMarkup>,
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 PartialEq for InlineQueryResultGame
impl PartialEq 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
impl StructuralPartialEq for InlineQueryResultGame
Auto Trait Implementations§
impl Freeze for InlineQueryResultGame
impl RefUnwindSafe for InlineQueryResultGame
impl Send for InlineQueryResultGame
impl Sync for InlineQueryResultGame
impl Unpin for InlineQueryResultGame
impl UnwindSafe for InlineQueryResultGame
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more