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>, ) -> &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 duplicate 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>>> for InlineKeyboardMarkup
impl From<Vec<Vec<InlineKeyboardButton>>> for InlineKeyboardMarkup
Source§fn from(value: Vec<Vec<InlineKeyboardButton>>) -> InlineKeyboardMarkup
fn from(value: Vec<Vec<InlineKeyboardButton>>) -> InlineKeyboardMarkup
Converts to this type from the input type.
Source§impl PartialEq for InlineKeyboardMarkup
impl PartialEq for InlineKeyboardMarkup
Source§impl PartialOrd for InlineKeyboardMarkup
impl PartialOrd for InlineKeyboardMarkup
Source§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
impl StructuralPartialEq for InlineKeyboardMarkup
Auto Trait Implementations§
impl Freeze for InlineKeyboardMarkup
impl RefUnwindSafe for InlineKeyboardMarkup
impl Send for InlineKeyboardMarkup
impl Sync for InlineKeyboardMarkup
impl Unpin for InlineKeyboardMarkup
impl UnwindSafe for InlineKeyboardMarkup
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more