Struct botapi::gen_types::InlineKeyboardMarkupBuilder
source · pub struct InlineKeyboardMarkupBuilder { /* private fields */ }Expand description
This object represents an inline keyboard that appears right next to the message it belongs to.Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will display unsupported message.
Implementations§
source§impl InlineKeyboardMarkupBuilder
impl InlineKeyboardMarkupBuilder
pub fn new(inline_keyboard: Vec<Vec<InlineKeyboardButton>>) -> Self
sourcepub fn set_inline_keyboard(
self,
inline_keyboard: Vec<Vec<InlineKeyboardButton>>
) -> Self
pub fn set_inline_keyboard(
self,
inline_keyboard: Vec<Vec<InlineKeyboardButton>>
) -> Self
Array of button rows, each represented by an Array of InlineKeyboardButton objects
pub fn build(self) -> InlineKeyboardMarkup
Trait Implementations§
source§impl Clone for InlineKeyboardMarkupBuilder
impl Clone for InlineKeyboardMarkupBuilder
source§fn clone(&self) -> InlineKeyboardMarkupBuilder
fn clone(&self) -> InlineKeyboardMarkupBuilder
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 InlineKeyboardMarkupBuilder
impl Debug for InlineKeyboardMarkupBuilder
source§impl Default for InlineKeyboardMarkupBuilder
impl Default for InlineKeyboardMarkupBuilder
source§fn default() -> InlineKeyboardMarkupBuilder
fn default() -> InlineKeyboardMarkupBuilder
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InlineKeyboardMarkupBuilder
impl<'de> Deserialize<'de> for InlineKeyboardMarkupBuilder
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