pub struct InlineKeyboardMarkup { /* private fields */ }
Expand description
This object represents an inline keyboard that appears right next to the message it belongs to.
Implementations§
source§impl InlineKeyboardMarkup
impl InlineKeyboardMarkup
pub fn new() -> Self
pub fn add_row(
&mut self,
row: Vec<InlineKeyboardButton>
) -> &mut Vec<InlineKeyboardButton>
pub fn add_empty_row(&mut self) -> &mut Vec<InlineKeyboardButton>
Trait Implementations§
source§impl Clone for InlineKeyboardMarkup
impl Clone for InlineKeyboardMarkup
source§fn clone(&self) -> InlineKeyboardMarkup
fn clone(&self) -> InlineKeyboardMarkup
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 InlineKeyboardMarkup
impl Debug for InlineKeyboardMarkup
source§impl From<InlineKeyboardMarkup> for ReplyMarkup
impl From<InlineKeyboardMarkup> for ReplyMarkup
source§fn from(value: InlineKeyboardMarkup) -> ReplyMarkup
fn from(value: InlineKeyboardMarkup) -> ReplyMarkup
Converts to this type from the input type.
source§impl From<Vec<Vec<InlineKeyboardButton, Global>, Global>> for InlineKeyboardMarkup
impl From<Vec<Vec<InlineKeyboardButton, Global>, Global>> for InlineKeyboardMarkup
source§impl PartialEq<InlineKeyboardMarkup> for InlineKeyboardMarkup
impl PartialEq<InlineKeyboardMarkup> for InlineKeyboardMarkup
source§fn eq(&self, other: &InlineKeyboardMarkup) -> bool
fn eq(&self, other: &InlineKeyboardMarkup) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<InlineKeyboardMarkup> for InlineKeyboardMarkup
impl PartialOrd<InlineKeyboardMarkup> for InlineKeyboardMarkup
source§fn partial_cmp(&self, other: &InlineKeyboardMarkup) -> Option<Ordering>
fn partial_cmp(&self, other: &InlineKeyboardMarkup) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more