pub struct RawChat {
pub id: i64,
pub type_: String,
pub title: Option<String>,
pub username: Option<String>,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub invite_link: Option<String>,
pub language_code: Option<String>,
pub all_members_are_administrators: Option<bool>,
}Expand description
This object represents a chat, directly mapped.
Fields§
§id: i64Unique identifier for this chat.
type_: StringType of chat, can be either “private”, “group”, “supergroup” or “channel”
title: Option<String>Title, for supergroups, channels and group chats
username: Option<String>Username, for private chats, supergroups and channels if available
first_name: Option<String>First name of the other party in a private chat
last_name: Option<String>Last name of the other party in a private chat
invite_link: Option<String>Invite link for this chat, specific to this bot. Does not apply to private chats.
language_code: Option<String>IETF language tag of the other party in a private chat
all_members_are_administrators: Option<bool>True if a group has ‘All Members Are Admins’ enabled.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RawChat
impl<'de> Deserialize<'de> for RawChat
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RawChat, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RawChat, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for RawChat
impl Ord for RawChat
Source§impl PartialOrd for RawChat
impl PartialOrd for RawChat
impl Eq for RawChat
impl StructuralPartialEq for RawChat
Auto Trait Implementations§
impl Freeze for RawChat
impl RefUnwindSafe for RawChat
impl Send for RawChat
impl Sync for RawChat
impl Unpin for RawChat
impl UnwindSafe for RawChat
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> 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.