Struct botapi::gen_types::NoSkipKeyboardButtonRequestChat
source · pub struct NoSkipKeyboardButtonRequestChat {
pub request_id: i64,
pub chat_is_channel: bool,
pub chat_is_forum: Option<bool>,
pub chat_has_username: Option<bool>,
pub chat_is_created: Option<bool>,
pub user_administrator_rights: Option<BoxWrapper<Unbox<ChatAdministratorRights>>>,
pub bot_administrator_rights: Option<BoxWrapper<Unbox<ChatAdministratorRights>>>,
pub bot_is_member: Option<bool>,
pub request_title: Option<bool>,
pub request_username: Option<bool>,
pub request_photo: Option<bool>,
}
Expand description
Companion type to KeyboardButtonRequestChat that doesn’t skip fields when serializing. Used for certain deserializers that use arrays to represent struct members
Fields§
§request_id: i64
Signed 32-bit identifier of the request, which will be received back in the ChatShared object. Must be unique within the message
chat_is_channel: bool
Pass True to request a channel chat, pass False to request a group or a supergroup chat.
chat_is_forum: Option<bool>
§chat_has_username: Option<bool>
§chat_is_created: Option<bool>
§user_administrator_rights: Option<BoxWrapper<Unbox<ChatAdministratorRights>>>
§bot_administrator_rights: Option<BoxWrapper<Unbox<ChatAdministratorRights>>>
§bot_is_member: Option<bool>
§request_title: Option<bool>
§request_username: Option<bool>
§request_photo: Option<bool>
Implementations§
source§impl NoSkipKeyboardButtonRequestChat
impl NoSkipKeyboardButtonRequestChat
pub fn skip(self) -> KeyboardButtonRequestChat
Trait Implementations§
source§impl Clone for NoSkipKeyboardButtonRequestChat
impl Clone for NoSkipKeyboardButtonRequestChat
source§fn clone(&self) -> NoSkipKeyboardButtonRequestChat
fn clone(&self) -> NoSkipKeyboardButtonRequestChat
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 Default for NoSkipKeyboardButtonRequestChat
impl Default for NoSkipKeyboardButtonRequestChat
source§fn default() -> NoSkipKeyboardButtonRequestChat
fn default() -> NoSkipKeyboardButtonRequestChat
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NoSkipKeyboardButtonRequestChat
impl<'de> Deserialize<'de> for NoSkipKeyboardButtonRequestChat
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<NoSkipKeyboardButtonRequestChat> for KeyboardButtonRequestChat
impl From<NoSkipKeyboardButtonRequestChat> for KeyboardButtonRequestChat
source§fn from(t: NoSkipKeyboardButtonRequestChat) -> Self
fn from(t: NoSkipKeyboardButtonRequestChat) -> Self
Converts to this type from the input type.
source§impl Into<NoSkipKeyboardButtonRequestChat> for KeyboardButtonRequestChat
impl Into<NoSkipKeyboardButtonRequestChat> for KeyboardButtonRequestChat
source§fn into(self) -> NoSkipKeyboardButtonRequestChat
fn into(self) -> NoSkipKeyboardButtonRequestChat
Converts this type into the (usually inferred) input type.
source§impl Ord for NoSkipKeyboardButtonRequestChat
impl Ord for NoSkipKeyboardButtonRequestChat
source§fn cmp(&self, other: &NoSkipKeyboardButtonRequestChat) -> Ordering
fn cmp(&self, other: &NoSkipKeyboardButtonRequestChat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for NoSkipKeyboardButtonRequestChat
impl PartialEq for NoSkipKeyboardButtonRequestChat
source§fn eq(&self, other: &NoSkipKeyboardButtonRequestChat) -> bool
fn eq(&self, other: &NoSkipKeyboardButtonRequestChat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NoSkipKeyboardButtonRequestChat
impl PartialOrd for NoSkipKeyboardButtonRequestChat
source§fn partial_cmp(
&self,
other: &NoSkipKeyboardButtonRequestChat,
) -> Option<Ordering>
fn partial_cmp( &self, other: &NoSkipKeyboardButtonRequestChat, ) -> 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 moreimpl Eq for NoSkipKeyboardButtonRequestChat
impl StructuralPartialEq for NoSkipKeyboardButtonRequestChat
Auto Trait Implementations§
impl Freeze for NoSkipKeyboardButtonRequestChat
impl RefUnwindSafe for NoSkipKeyboardButtonRequestChat
impl Send for NoSkipKeyboardButtonRequestChat
impl Sync for NoSkipKeyboardButtonRequestChat
impl Unpin for NoSkipKeyboardButtonRequestChat
impl UnwindSafe for NoSkipKeyboardButtonRequestChat
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.