pub struct ReplyKeyboard { /* private fields */ }Expand description
Builder for a reply keyboard (shown below the message input box).
Implementations§
Source§impl ReplyKeyboard
impl ReplyKeyboard
Sourcepub fn row(self, buttons: impl IntoIterator<Item = Button>) -> Self
pub fn row(self, buttons: impl IntoIterator<Item = Button>) -> Self
Append a row of text buttons.
Sourcepub fn single_use(self) -> Self
pub fn single_use(self) -> Self
Hide keyboard after a single press.
Sourcepub fn into_markup(self) -> ReplyMarkup
pub fn into_markup(self) -> ReplyMarkup
Convert to ReplyMarkup.
Trait Implementations§
Source§impl Clone for ReplyKeyboard
impl Clone for ReplyKeyboard
Source§fn clone(&self) -> ReplyKeyboard
fn clone(&self) -> ReplyKeyboard
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 Default for ReplyKeyboard
impl Default for ReplyKeyboard
Source§fn default() -> ReplyKeyboard
fn default() -> ReplyKeyboard
Returns the “default value” for a type. Read more
Source§impl From<ReplyKeyboard> for ReplyMarkup
impl From<ReplyKeyboard> for ReplyMarkup
Source§fn from(kb: ReplyKeyboard) -> Self
fn from(kb: ReplyKeyboard) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReplyKeyboard
impl RefUnwindSafe for ReplyKeyboard
impl Send for ReplyKeyboard
impl Sync for ReplyKeyboard
impl Unpin for ReplyKeyboard
impl UnsafeUnpin for ReplyKeyboard
impl UnwindSafe for ReplyKeyboard
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more