[−][src]Struct tbot::contexts::GameCallback
Context for the game_callback
handler.
Fields
bot: Arc<Bot<C>>
A bot for calling API without information inference.
id: Id
The ID of the callback.
from: User
The user who initiated the callback.
origin: Origin
The origin of the query.
chat_instance: String
The identifier of the chat.
game: String
The requested game.
Trait Implementations
impl<'a, C: 'static> Callback<'a, C> for GameCallback<C>
[src]
fn bot(&self) -> &Bot<C>
[src]
fn id(&self) -> Ref
[src]
fn answer(&'a self, action: CallbackAction<'a>) -> AnswerCallbackQuery<'a, C>
[src]
fn ignore(&'a self) -> AnswerCallbackQuery<'a, C>
[src]
fn open_url(&'a self, url: &'a str) -> AnswerCallbackQuery<'a, C>
[src]
fn notify(&'a self, text: &'a str) -> AnswerCallbackQuery<'a, C>
[src]
fn alert(&'a self, text: &'a str) -> AnswerCallbackQuery<'a, C>
[src]
impl<C: Clone> Clone for GameCallback<C>
[src]
fn clone(&self) -> GameCallback<C>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C: Debug> Debug for GameCallback<C>
[src]
Auto Trait Implementations
impl<C> Send for GameCallback<C> where
C: Send + Sync,
C: Send + Sync,
impl<C> Sync for GameCallback<C> where
C: Send + Sync,
C: Send + Sync,
impl<C> Unpin for GameCallback<C>
impl<C> !RefUnwindSafe for GameCallback<C>
impl<C> !UnwindSafe for GameCallback<C>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,