[][src]Trait tbot::contexts::fields::Callback

pub trait Callback<C>: Context<C> {
    fn id(&self) -> &Id;
fn from(&self) -> &User;
fn origin(&self) -> &Origin;
fn chat_instance(&self) -> &str; }

A general trait for callback updates.

Required methods

fn id(&self) -> &Id

The ID of the callback.

fn from(&self) -> &User

The user who initiated the callback.

fn origin(&self) -> &Origin

The origin of the query.

fn chat_instance(&self) -> &str

The identifier of the chat.

Loading content...


impl<C> Callback<C> for DataCallback<C>[src]

impl<C> Callback<C> for GameCallback<C>[src]

Loading content...