Struct teloxide::types::ForumTopic
source · pub struct ForumTopic {
pub message_thread_id: i32,
pub name: String,
pub icon_color: [u8; 3],
pub icon_custom_emoji_id: Option<String>,
}
Expand description
This object represents a forum topic.
Fields§
§message_thread_id: i32
Unique identifier of the forum topic
name: String
Name of the topic.
icon_color: [u8; 3]
Color of the topic icon in RGB format.
icon_custom_emoji_id: Option<String>
Unique identifier of the custom emoji shown as the topic icon.
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<ForumTopic, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ForumTopic, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ForumTopic
impl Hash for ForumTopic
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
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ForumTopic
impl StructuralEq 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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.