Struct telexide::model::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>>
Vec of button rows, each represented by a Vec of
InlineKeyboardButton
objects
Implementations§
source§impl InlineKeyboardMarkup
impl InlineKeyboardMarkup
pub fn new() -> Self
pub fn add_new_row(&mut self) -> &mut Self
pub fn add_row(&mut self, buttons: Vec<InlineKeyboardButton>) -> &mut Self
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 Default for InlineKeyboardMarkup
impl Default for InlineKeyboardMarkup
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 PartialEq for InlineKeyboardMarkup
impl PartialEq 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 Serialize for InlineKeyboardMarkup
impl Serialize for InlineKeyboardMarkup
impl Eq for InlineKeyboardMarkup
impl StructuralEq for InlineKeyboardMarkup
impl StructuralPartialEq 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§
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> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
source§impl<T> CloneableStorage for Twhere
T: Any + Send + Sync + Clone,
impl<T> CloneableStorage for Twhere T: Any + Send + Sync + Clone,
fn clone_storage(&self) -> Box<dyn CloneableStorage>
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.