Struct telegram_bot_ars::types::InlineKeyboardMarkup
source · 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() -> InlineKeyboardMarkup
pub fn add_row(
&mut self,
row: Vec<InlineKeyboardButton, Global>
) -> &mut Vec<InlineKeyboardButton, Global>
pub fn add_empty_row(&mut self) -> &mut Vec<InlineKeyboardButton, Global>
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§fn from(
value: Vec<Vec<InlineKeyboardButton, Global>, Global>
) -> InlineKeyboardMarkup
fn from(
value: Vec<Vec<InlineKeyboardButton, Global>, Global>
) -> InlineKeyboardMarkup
Converts to this type from the input type.
source§impl PartialEq<InlineKeyboardMarkup> for InlineKeyboardMarkup
impl PartialEq<InlineKeyboardMarkup> for InlineKeyboardMarkup
source§fn eq(&self, other: &InlineKeyboardMarkup) -> bool
fn eq(&self, other: &InlineKeyboardMarkup) -> bool
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 moresource§impl Serialize for InlineKeyboardMarkup
impl Serialize for InlineKeyboardMarkup
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more