pub struct ForumTopic {
pub info: ForumTopicInfo,
pub last_message: Option<Message>,
pub is_pinned: bool,
pub unread_count: i32,
pub last_read_inbox_message_id: i64,
pub last_read_outbox_message_id: i64,
pub unread_mention_count: i32,
pub unread_reaction_count: i32,
pub notification_settings: ChatNotificationSettings,
pub draft_message: Option<DraftMessage>,
}
Expand description
Describes a forum topic
Fields§
§info: ForumTopicInfo
Basic information about the topic
last_message: Option<Message>
Last message in the topic; may be null if unknown
is_pinned: bool
True, if the topic is pinned in the topic list
unread_count: i32
Number of unread messages in the topic
last_read_inbox_message_id: i64
Identifier of the last read incoming message
last_read_outbox_message_id: i64
Identifier of the last read outgoing message
unread_mention_count: i32
Number of unread messages with a mention/reply in the topic
unread_reaction_count: i32
Number of messages with unread reactions in the topic
notification_settings: ChatNotificationSettings
Notification settings for the topic
draft_message: Option<DraftMessage>
A draft of a message in the topic; may be null if none
Trait Implementations§
Source§impl Clone for ForumTopic
impl Clone for ForumTopic
Source§fn clone(&self) -> ForumTopic
fn clone(&self) -> ForumTopic
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 ForumTopic
impl Debug for ForumTopic
Source§impl<'de> Deserialize<'de> for ForumTopic
impl<'de> Deserialize<'de> for ForumTopic
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 ForumTopic
impl PartialEq for ForumTopic
Source§impl Serialize for ForumTopic
impl Serialize for ForumTopic
impl StructuralPartialEq for ForumTopic
Auto Trait Implementations§
impl Freeze for ForumTopic
impl RefUnwindSafe for ForumTopic
impl Send for ForumTopic
impl Sync for ForumTopic
impl Unpin for ForumTopic
impl UnwindSafe for ForumTopic
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