Struct botapi::gen_types::ForumTopicCreated
source · pub struct ForumTopicCreated {
pub name: String,
pub icon_color: i64,
pub icon_custom_emoji_id: Option<String>,
}
Expand description
This object represents a service message about a new forum topic created in the chat.
Fields§
§name: String
Name of the topic
icon_color: i64
Color of the topic icon in RGB format
icon_custom_emoji_id: Option<String>
Optional. Unique identifier of the custom emoji shown as the topic icon
Implementations§
source§impl ForumTopicCreated
impl ForumTopicCreated
pub fn noskip(self) -> NoSkipForumTopicCreated
source§impl ForumTopicCreated
impl ForumTopicCreated
pub fn new(name: String, icon_color: i64) -> Self
sourcepub fn set_name<'a>(&'a mut self, name: String) -> &'a mut Self
pub fn set_name<'a>(&'a mut self, name: String) -> &'a mut Self
Name of the topic
sourcepub fn get_icon_color<'a>(&'a self) -> i64
pub fn get_icon_color<'a>(&'a self) -> i64
Color of the topic icon in RGB format
sourcepub fn set_icon_color<'a>(&'a mut self, icon_color: i64) -> &'a mut Self
pub fn set_icon_color<'a>(&'a mut self, icon_color: i64) -> &'a mut Self
Color of the topic icon in RGB format
sourcepub fn get_icon_custom_emoji_id<'a>(&'a self) -> Option<&'a str>
pub fn get_icon_custom_emoji_id<'a>(&'a self) -> Option<&'a str>
Optional. Unique identifier of the custom emoji shown as the topic icon
sourcepub fn set_icon_custom_emoji_id<'a>(
&'a mut self,
icon_custom_emoji_id: Option<String>,
) -> &'a mut Self
pub fn set_icon_custom_emoji_id<'a>( &'a mut self, icon_custom_emoji_id: Option<String>, ) -> &'a mut Self
Optional. Unique identifier of the custom emoji shown as the topic icon
Trait Implementations§
source§impl Clone for ForumTopicCreated
impl Clone for ForumTopicCreated
source§fn clone(&self) -> ForumTopicCreated
fn clone(&self) -> ForumTopicCreated
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 ForumTopicCreated
impl Debug for ForumTopicCreated
source§impl Default for ForumTopicCreated
impl Default for ForumTopicCreated
source§fn default() -> ForumTopicCreated
fn default() -> ForumTopicCreated
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ForumTopicCreated
impl<'de> Deserialize<'de> for ForumTopicCreated
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 From<BoxWrapper<Box<ForumTopicCreated>>> for ForumTopicCreated
impl From<BoxWrapper<Box<ForumTopicCreated>>> for ForumTopicCreated
source§fn from(t: BoxWrapper<Box<ForumTopicCreated>>) -> Self
fn from(t: BoxWrapper<Box<ForumTopicCreated>>) -> Self
Converts to this type from the input type.
source§impl From<BoxWrapper<Unbox<ForumTopicCreated>>> for ForumTopicCreated
impl From<BoxWrapper<Unbox<ForumTopicCreated>>> for ForumTopicCreated
source§fn from(t: BoxWrapper<Unbox<ForumTopicCreated>>) -> Self
fn from(t: BoxWrapper<Unbox<ForumTopicCreated>>) -> Self
Converts to this type from the input type.
source§impl From<NoSkipForumTopicCreated> for ForumTopicCreated
impl From<NoSkipForumTopicCreated> for ForumTopicCreated
source§fn from(t: NoSkipForumTopicCreated) -> Self
fn from(t: NoSkipForumTopicCreated) -> Self
Converts to this type from the input type.
source§impl Hash for ForumTopicCreated
impl Hash for ForumTopicCreated
source§impl Into<NoSkipForumTopicCreated> for ForumTopicCreated
impl Into<NoSkipForumTopicCreated> for ForumTopicCreated
source§fn into(self) -> NoSkipForumTopicCreated
fn into(self) -> NoSkipForumTopicCreated
Converts this type into the (usually inferred) input type.
source§impl Ord for ForumTopicCreated
impl Ord for ForumTopicCreated
source§fn cmp(&self, other: &ForumTopicCreated) -> Ordering
fn cmp(&self, other: &ForumTopicCreated) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ForumTopicCreated
impl PartialEq for ForumTopicCreated
source§fn eq(&self, other: &ForumTopicCreated) -> bool
fn eq(&self, other: &ForumTopicCreated) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ForumTopicCreated
impl PartialOrd for ForumTopicCreated
source§fn partial_cmp(&self, other: &ForumTopicCreated) -> Option<Ordering>
fn partial_cmp(&self, other: &ForumTopicCreated) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ForumTopicCreated
impl Serialize for ForumTopicCreated
impl Eq for ForumTopicCreated
impl StructuralPartialEq for ForumTopicCreated
Auto Trait Implementations§
impl Freeze for ForumTopicCreated
impl RefUnwindSafe for ForumTopicCreated
impl Send for ForumTopicCreated
impl Sync for ForumTopicCreated
impl Unpin for ForumTopicCreated
impl UnwindSafe for ForumTopicCreated
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.