Struct frankenstein::api_params::CreateForumTopicParams
source · pub struct CreateForumTopicParams {
pub chat_id: ChatId,
pub name: String,
pub icon_color: Option<u32>,
pub icon_custom_emoji_id: Option<String>,
}
Fields§
§chat_id: ChatId
§name: String
§icon_color: Option<u32>
§icon_custom_emoji_id: Option<String>
Implementations§
source§impl CreateForumTopicParams
impl CreateForumTopicParams
sourcepub fn builder() -> CreateForumTopicParamsBuilder<((), (), (), ())>
pub fn builder() -> CreateForumTopicParamsBuilder<((), (), (), ())>
Create a builder for building CreateForumTopicParams
.
On the builder, call .chat_id(...)
, .name(...)
, .icon_color(...)
(optional), .icon_custom_emoji_id(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of CreateForumTopicParams
.
Trait Implementations§
source§impl Clone for CreateForumTopicParams
impl Clone for CreateForumTopicParams
source§fn clone(&self) -> CreateForumTopicParams
fn clone(&self) -> CreateForumTopicParams
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 CreateForumTopicParams
impl Debug for CreateForumTopicParams
source§impl<'de> Deserialize<'de> for CreateForumTopicParams
impl<'de> Deserialize<'de> for CreateForumTopicParams
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 CreateForumTopicParams
impl PartialEq for CreateForumTopicParams
source§fn eq(&self, other: &CreateForumTopicParams) -> bool
fn eq(&self, other: &CreateForumTopicParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CreateForumTopicParams
impl Serialize for CreateForumTopicParams
impl Eq for CreateForumTopicParams
impl StructuralPartialEq for CreateForumTopicParams
Auto Trait Implementations§
impl Freeze for CreateForumTopicParams
impl RefUnwindSafe for CreateForumTopicParams
impl Send for CreateForumTopicParams
impl Sync for CreateForumTopicParams
impl Unpin for CreateForumTopicParams
impl UnwindSafe for CreateForumTopicParams
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