pub struct Keyboard { /* private fields */ }Expand description
Keyboard structure
Implementations§
Source§impl Keyboard
impl Keyboard
Sourcepub fn new_inline() -> Self
pub fn new_inline() -> Self
Create new inline keyboard
Sourcepub fn new_one_time() -> Self
pub fn new_one_time() -> Self
Create new one-time keyboard
Sourcepub fn add_row(self, row: Vec<KeyboardButton>) -> Self
pub fn add_row(self, row: Vec<KeyboardButton>) -> Self
Add row of buttons
Add text button to last row
Add callback button to last row
Add command button to last row
Add link button to last row
Sourcepub fn to_json_string(&self) -> String
pub fn to_json_string(&self) -> String
Convert to JSON string
Create default menu keyboard
Create admin menu keyboard
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Keyboard
impl RefUnwindSafe for Keyboard
impl Send for Keyboard
impl Sync for Keyboard
impl Unpin for Keyboard
impl UnwindSafe for Keyboard
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