Struct carapax::types::ReplyKeyboardRemove
source · pub struct ReplyKeyboardRemove { /* private fields */ }
Expand description
Represents a trigger to remove the custom keyboard.
User will not be able to summon this keyboard.
If you want to hide the keyboard from sight but keep it accessible,
use ReplyKeyboardMarkup::with_one_time_keyboard
.
Implementations§
source§impl ReplyKeyboardRemove
impl ReplyKeyboardRemove
sourcepub fn with_selective(self, value: bool) -> ReplyKeyboardRemove
pub fn with_selective(self, value: bool) -> ReplyKeyboardRemove
Sets a new value for a selective
flag.
§Arguments
value
- Indicates whether to remove the keyboard for specific users only.
Targets:
- users that are @mentioned in the text of the Message object;
- if the bot message is a reply (has
reply_to_message_id
), sender of the original message
Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven’t voted yet.
Trait Implementations§
source§impl Clone for ReplyKeyboardRemove
impl Clone for ReplyKeyboardRemove
source§fn clone(&self) -> ReplyKeyboardRemove
fn clone(&self) -> ReplyKeyboardRemove
Returns a copy 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 From<ReplyKeyboardRemove> for ReplyMarkup
impl From<ReplyKeyboardRemove> for ReplyMarkup
source§fn from(original: ReplyKeyboardRemove) -> ReplyMarkup
fn from(original: ReplyKeyboardRemove) -> ReplyMarkup
Converts to this type from the input type.
source§impl PartialEq for ReplyKeyboardRemove
impl PartialEq for ReplyKeyboardRemove
source§fn eq(&self, other: &ReplyKeyboardRemove) -> bool
fn eq(&self, other: &ReplyKeyboardRemove) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ReplyKeyboardRemove
impl PartialOrd for ReplyKeyboardRemove
source§fn partial_cmp(&self, other: &ReplyKeyboardRemove) -> Option<Ordering>
fn partial_cmp(&self, other: &ReplyKeyboardRemove) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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 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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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