pub struct KeyboardButton { /* private fields */ }
Expand description
This object represents one button of the reply keyboard.
Implementations§
Source§impl KeyboardButton
impl KeyboardButton
pub fn new<S>(text: S) -> KeyboardButton
Sourcepub fn request_contact(&mut self) -> &mut KeyboardButton
pub fn request_contact(&mut self) -> &mut KeyboardButton
The user’s phone number will be sent as a contact when the button is pressed. Available in private chats only
Sourcepub fn request_location(&mut self) -> &mut KeyboardButton
pub fn request_location(&mut self) -> &mut KeyboardButton
The user’s current location will be sent when the button is pressed. Available in private chats only
Trait Implementations§
Source§impl Clone for KeyboardButton
impl Clone for KeyboardButton
Source§fn clone(&self) -> KeyboardButton
fn clone(&self) -> KeyboardButton
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 Debug for KeyboardButton
impl Debug for KeyboardButton
Source§impl<'a> From<&'a str> for KeyboardButton
impl<'a> From<&'a str> for KeyboardButton
Source§fn from(value: &'a str) -> KeyboardButton
fn from(value: &'a str) -> KeyboardButton
Converts to this type from the input type.
Source§impl From<String> for KeyboardButton
impl From<String> for KeyboardButton
Source§fn from(value: String) -> KeyboardButton
fn from(value: String) -> KeyboardButton
Converts to this type from the input type.
Source§impl PartialEq for KeyboardButton
impl PartialEq for KeyboardButton
Source§impl PartialOrd for KeyboardButton
impl PartialOrd for KeyboardButton
Source§impl Serialize for KeyboardButton
impl Serialize for KeyboardButton
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for KeyboardButton
Auto Trait Implementations§
impl Freeze for KeyboardButton
impl RefUnwindSafe for KeyboardButton
impl Send for KeyboardButton
impl Sync for KeyboardButton
impl Unpin for KeyboardButton
impl UnwindSafe for KeyboardButton
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