#[non_exhaustive]pub struct ReplyKeyboardRemove {
pub remove_keyboard: bool,
pub selective: Option<bool>,
}Expand description
Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.remove_keyboard: boolRequests clients to remove the custom keyboard. Always true.
selective: Option<bool>true to remove the keyboard for specific users only.
Implementations§
Source§impl ReplyKeyboardRemove
impl ReplyKeyboardRemove
Sourcepub fn new() -> ReplyKeyboardRemove
pub fn new() -> ReplyKeyboardRemove
Creates a new ReplyKeyboardRemove with remove_keyboard set to true.
Sourcepub fn selective(self) -> ReplyKeyboardRemove
pub fn selective(self) -> ReplyKeyboardRemove
Remove the keyboard for specific users only.
Trait Implementations§
Source§impl Clone for ReplyKeyboardRemove
impl Clone for ReplyKeyboardRemove
Source§fn clone(&self) -> ReplyKeyboardRemove
fn clone(&self) -> ReplyKeyboardRemove
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 ReplyKeyboardRemove
impl Debug for ReplyKeyboardRemove
Source§impl Default for ReplyKeyboardRemove
impl Default for ReplyKeyboardRemove
Source§fn default() -> ReplyKeyboardRemove
fn default() -> ReplyKeyboardRemove
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReplyKeyboardRemove
impl<'de> Deserialize<'de> for ReplyKeyboardRemove
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReplyKeyboardRemove, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReplyKeyboardRemove, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ReplyKeyboardRemove
impl PartialEq for ReplyKeyboardRemove
Source§impl Serialize for ReplyKeyboardRemove
impl Serialize for ReplyKeyboardRemove
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 ReplyKeyboardRemove
Auto Trait Implementations§
impl Freeze for ReplyKeyboardRemove
impl RefUnwindSafe for ReplyKeyboardRemove
impl Send for ReplyKeyboardRemove
impl Sync for ReplyKeyboardRemove
impl Unpin for ReplyKeyboardRemove
impl UnsafeUnpin for ReplyKeyboardRemove
impl UnwindSafe for ReplyKeyboardRemove
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