Struct telegram_bot2::models::CallbackQueryBuilder
source · pub struct CallbackQueryBuilder { /* private fields */ }Expand description
Builder for the CallbackQuery structure
Implementations§
source§impl CallbackQueryBuilder
impl CallbackQueryBuilder
sourcepub fn new(id: String, from: User, chat_instance: String) -> Self
pub fn new(id: String, from: User, chat_instance: String) -> Self
Instantiate the builder with the fields id, from, message, inline_message_id, chat_instance, data, game_short_name
sourcepub fn inline_message_id(self, val: String) -> Self
pub fn inline_message_id(self, val: String) -> Self
Set the field inline_message_id to the given value
sourcepub fn game_short_name(self, val: String) -> Self
pub fn game_short_name(self, val: String) -> Self
Set the field game_short_name to the given value
Trait Implementations§
source§impl Builder for CallbackQueryBuilder
impl Builder for CallbackQueryBuilder
§type Value = CallbackQuery
type Value = CallbackQuery
Type to be built