pub struct ChannelChat {
pub id: i64,
pub title: String,
pub username: Option<String>,
pub photo: Option<ChatPhoto>,
pub description: Option<String>,
pub invite_link: Option<String>,
pub pinned_message: Option<Box<Message>>,
pub linked_chat_id: Option<i64>,
}Expand description
A Channel object
Fields§
§id: i64§title: StringTitle
username: Option<String>Username if available
photo: Option<ChatPhoto>Chat photo. Returned only in get_chat.
description: Option<String>Description. Returned only in get_chat.
invite_link: Option<String>Chat invite link
pinned_message: Option<Box<Message>>Pinned message. Returned only in get_chat.
linked_chat_id: Option<i64>Unique identifier for the linked chat, i.e. the discussion group
identifier for a channel and vice versa; for supergroups and channel
chats. Returned only in get_chat.
Trait Implementations§
Source§impl Clone for ChannelChat
impl Clone for ChannelChat
Source§fn clone(&self) -> ChannelChat
fn clone(&self) -> ChannelChat
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 ChannelChat
impl Debug for ChannelChat
Source§impl<'de> Deserialize<'de> for ChannelChat
impl<'de> Deserialize<'de> for ChannelChat
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 PartialEq for ChannelChat
impl PartialEq for ChannelChat
Source§impl Serialize for ChannelChat
impl Serialize for ChannelChat
impl StructuralPartialEq for ChannelChat
Auto Trait Implementations§
impl Freeze for ChannelChat
impl RefUnwindSafe for ChannelChat
impl Send for ChannelChat
impl Sync for ChannelChat
impl Unpin for ChannelChat
impl UnwindSafe for ChannelChat
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