Struct grammers_client::types::reply_markup::Keyboard
source · pub struct Keyboard { /* private fields */ }
Expand description
Structure holding the state for keyboard reply markups.
See keyboard
for usage examples.
Implementations§
source§impl Keyboard
impl Keyboard
sourcepub fn fit_size(self) -> Self
pub fn fit_size(self) -> Self
Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Otherwise, the custom keyboard is always of the same height as the virtual keyboard.
sourcepub fn single_use(self) -> Self
pub fn single_use(self) -> Self
Requests clients to hide the keyboard as soon as it’s been used.
The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat – the user can press a special button in the input field to see the custom keyboard again.
Trait Implementations§
source§impl ReplyMarkup for Keyboard
impl ReplyMarkup for Keyboard
fn to_reply_markup(&self) -> Markup
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