pub struct NoSkipBotCommandScopeChatMember {
pub tg_type: String,
pub chat_id: ChatHandle,
pub user_id: i64,
}Expand description
Companion type to BotCommandScopeChatMember that doesn’t skip fields when serializing. Used for certain deserializers that use arrays to represent struct members
Fields§
§tg_type: StringScope type, must be chat_member
chat_id: ChatHandleUnique identifier for the target chat or username of the target supergroup (in the format @supergroupusername). Channel direct messages chats and channel chats aren’t supported.
user_id: i64Unique identifier of the target user
Implementations§
Source§impl NoSkipBotCommandScopeChatMember
impl NoSkipBotCommandScopeChatMember
pub fn skip(self) -> BotCommandScopeChatMember
Trait Implementations§
Source§impl Clone for NoSkipBotCommandScopeChatMember
impl Clone for NoSkipBotCommandScopeChatMember
Source§fn clone(&self) -> NoSkipBotCommandScopeChatMember
fn clone(&self) -> NoSkipBotCommandScopeChatMember
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 NoSkipBotCommandScopeChatMember
impl Default for NoSkipBotCommandScopeChatMember
Source§fn default() -> NoSkipBotCommandScopeChatMember
fn default() -> NoSkipBotCommandScopeChatMember
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NoSkipBotCommandScopeChatMember
impl<'de> Deserialize<'de> for NoSkipBotCommandScopeChatMember
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<NoSkipBotCommandScopeChatMember> for BotCommandScopeChatMember
impl From<NoSkipBotCommandScopeChatMember> for BotCommandScopeChatMember
Source§fn from(t: NoSkipBotCommandScopeChatMember) -> Self
fn from(t: NoSkipBotCommandScopeChatMember) -> Self
Converts to this type from the input type.
Source§impl Into<NoSkipBotCommandScopeChatMember> for BotCommandScopeChatMember
impl Into<NoSkipBotCommandScopeChatMember> for BotCommandScopeChatMember
Source§fn into(self) -> NoSkipBotCommandScopeChatMember
fn into(self) -> NoSkipBotCommandScopeChatMember
Converts this type into the (usually inferred) input type.
Source§impl Ord for NoSkipBotCommandScopeChatMember
impl Ord for NoSkipBotCommandScopeChatMember
Source§fn cmp(&self, other: &NoSkipBotCommandScopeChatMember) -> Ordering
fn cmp(&self, other: &NoSkipBotCommandScopeChatMember) -> 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 NoSkipBotCommandScopeChatMember
impl PartialEq for NoSkipBotCommandScopeChatMember
Source§fn eq(&self, other: &NoSkipBotCommandScopeChatMember) -> bool
fn eq(&self, other: &NoSkipBotCommandScopeChatMember) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for NoSkipBotCommandScopeChatMember
impl PartialOrd for NoSkipBotCommandScopeChatMember
impl Eq for NoSkipBotCommandScopeChatMember
impl StructuralPartialEq for NoSkipBotCommandScopeChatMember
Auto Trait Implementations§
impl Freeze for NoSkipBotCommandScopeChatMember
impl RefUnwindSafe for NoSkipBotCommandScopeChatMember
impl Send for NoSkipBotCommandScopeChatMember
impl Sync for NoSkipBotCommandScopeChatMember
impl Unpin for NoSkipBotCommandScopeChatMember
impl UnwindSafe for NoSkipBotCommandScopeChatMember
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<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.