Struct tdlib::types::ForumTopic
source · 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: ForumTopicInfoBasic information about the topic
last_message: Option<Message>Last message in the topic; may be null if unknown
is_pinned: boolTrue, if the topic is pinned in the topic list
unread_count: i32Number of unread messages in the topic
last_read_inbox_message_id: i64Identifier of the last read incoming message
last_read_outbox_message_id: i64Identifier of the last read outgoing message
unread_mention_count: i32Number of unread messages with a mention/reply in the topic
unread_reaction_count: i32Number of messages with unread reactions in the topic
notification_settings: ChatNotificationSettingsNotification 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 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 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<ForumTopic> for ForumTopic
impl PartialEq<ForumTopic> for ForumTopic
source§fn eq(&self, other: &ForumTopic) -> bool
fn eq(&self, other: &ForumTopic) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ForumTopic
impl Serialize for ForumTopic
impl StructuralPartialEq for ForumTopic
Auto Trait Implementations§
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