Struct telegram_bot_api::types::InlineKeyboardMarkup
source · [−]pub struct InlineKeyboardMarkup {
pub inline_keyboard: Vec<Vec<InlineKeyboardButton>>,
}
Expand description
This object represents an inline keyboard that appears right next to the message it belongs to.
Fields
inline_keyboard: Vec<Vec<InlineKeyboardButton>>
Array of button rows, each represented by an Array of InlineKeyboardButton objects
Implementations
sourceimpl InlineKeyboardMarkup
impl InlineKeyboardMarkup
pub fn new(inline_keyboard: Vec<Vec<InlineKeyboardButton>>) -> Self
Trait Implementations
sourceimpl Clone for InlineKeyboardMarkup
impl Clone for InlineKeyboardMarkup
sourcefn clone(&self) -> InlineKeyboardMarkup
fn clone(&self) -> InlineKeyboardMarkup
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InlineKeyboardMarkup
impl Debug for InlineKeyboardMarkup
sourceimpl<'de> Deserialize<'de> for InlineKeyboardMarkup
impl<'de> Deserialize<'de> for InlineKeyboardMarkup
sourcefn 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
sourceimpl Serialize for InlineKeyboardMarkup
impl Serialize for InlineKeyboardMarkup
Auto Trait Implementations
impl RefUnwindSafe for InlineKeyboardMarkup
impl Send for InlineKeyboardMarkup
impl Sync for InlineKeyboardMarkup
impl Unpin for InlineKeyboardMarkup
impl UnwindSafe for InlineKeyboardMarkup
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more