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§
Source§impl InlineKeyboardMarkup
impl InlineKeyboardMarkup
pub fn noskip(self) -> NoSkipInlineKeyboardMarkup
Source§impl InlineKeyboardMarkup
impl InlineKeyboardMarkup
pub fn new(inline_keyboard: Vec<Vec<InlineKeyboardButton>>) -> Self
Sourcepub fn get_inline_keyboard<'a>(&'a self) -> &'a Vec<Vec<InlineKeyboardButton>>
pub fn get_inline_keyboard<'a>(&'a self) -> &'a Vec<Vec<InlineKeyboardButton>>
Array of button rows, each represented by an Array of InlineKeyboardButton objects
Sourcepub fn set_inline_keyboard<'a>(
&'a mut self,
inline_keyboard: Vec<Vec<InlineKeyboardButton>>,
) -> &'a mut Self
pub fn set_inline_keyboard<'a>( &'a mut self, inline_keyboard: Vec<Vec<InlineKeyboardButton>>, ) -> &'a mut Self
Array of button rows, each represented by an Array of InlineKeyboardButton objects
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 Default for InlineKeyboardMarkup
impl Default for InlineKeyboardMarkup
Source§fn default() -> InlineKeyboardMarkup
fn default() -> InlineKeyboardMarkup
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InlineKeyboardMarkup
impl<'de> Deserialize<'de> for InlineKeyboardMarkup
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
Source§impl From<BoxWrapper<Box<InlineKeyboardMarkup>>> for InlineKeyboardMarkup
impl From<BoxWrapper<Box<InlineKeyboardMarkup>>> for InlineKeyboardMarkup
Source§fn from(t: BoxWrapper<Box<InlineKeyboardMarkup>>) -> Self
fn from(t: BoxWrapper<Box<InlineKeyboardMarkup>>) -> Self
Converts to this type from the input type.
Source§impl From<BoxWrapper<Unbox<InlineKeyboardMarkup>>> for InlineKeyboardMarkup
impl From<BoxWrapper<Unbox<InlineKeyboardMarkup>>> for InlineKeyboardMarkup
Source§fn from(t: BoxWrapper<Unbox<InlineKeyboardMarkup>>) -> Self
fn from(t: BoxWrapper<Unbox<InlineKeyboardMarkup>>) -> Self
Converts to this type from the input type.
Source§impl From<NoSkipInlineKeyboardMarkup> for InlineKeyboardMarkup
impl From<NoSkipInlineKeyboardMarkup> for InlineKeyboardMarkup
Source§fn from(t: NoSkipInlineKeyboardMarkup) -> Self
fn from(t: NoSkipInlineKeyboardMarkup) -> Self
Converts to this type from the input type.
Source§impl Hash for InlineKeyboardMarkup
impl Hash for InlineKeyboardMarkup
Source§impl Into<NoSkipInlineKeyboardMarkup> for InlineKeyboardMarkup
impl Into<NoSkipInlineKeyboardMarkup> for InlineKeyboardMarkup
Source§fn into(self) -> NoSkipInlineKeyboardMarkup
fn into(self) -> NoSkipInlineKeyboardMarkup
Converts this type into the (usually inferred) input type.
Source§impl Ord for InlineKeyboardMarkup
impl Ord for InlineKeyboardMarkup
Source§fn cmp(&self, other: &InlineKeyboardMarkup) -> Ordering
fn cmp(&self, other: &InlineKeyboardMarkup) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
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
impl Eq for InlineKeyboardMarkup
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.