pub struct InlineKeyboardRow {
pub buttons: Vec<InlineKeyboardButton>,
}Fields§
Implementations§
Source§impl InlineKeyboardRow
impl InlineKeyboardRow
Sourcepub fn new_with(button: InlineKeyboardButton) -> Self
pub fn new_with(button: InlineKeyboardButton) -> Self
Create a new InlineKeyboardRow
Sourcepub fn new_emplace(
text: impl Into<String>,
kind: InlineKeyboardButtonKind,
) -> Self
pub fn new_emplace( text: impl Into<String>, kind: InlineKeyboardButtonKind, ) -> Self
Create a new InlineKeyboardRow, emplacing a new button
Sourcepub fn with(self, button: InlineKeyboardButton) -> Self
pub fn with(self, button: InlineKeyboardButton) -> Self
Add a InlineKeyboardButton to the row
Sourcepub fn emplace(
self,
text: impl Into<String>,
kind: InlineKeyboardButtonKind,
) -> Self
pub fn emplace( self, text: impl Into<String>, kind: InlineKeyboardButtonKind, ) -> Self
Create and add a InlineKeyboardButton to the row
Trait Implementations§
Source§impl Clone for InlineKeyboardRow
impl Clone for InlineKeyboardRow
Source§fn clone(&self) -> InlineKeyboardRow
fn clone(&self) -> InlineKeyboardRow
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 moreAuto Trait Implementations§
impl Freeze for InlineKeyboardRow
impl RefUnwindSafe for InlineKeyboardRow
impl Send for InlineKeyboardRow
impl Sync for InlineKeyboardRow
impl Unpin for InlineKeyboardRow
impl UnwindSafe for InlineKeyboardRow
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