Struct telegram_bot2::models::CreateForumTopicBuilder
source · pub struct CreateForumTopicBuilder { /* private fields */ }Expand description
Builder for the CreateForumTopic structure
Implementations§
source§impl CreateForumTopicBuilder
impl CreateForumTopicBuilder
sourcepub fn new(chat_id: ChatId, name: String) -> Self
pub fn new(chat_id: ChatId, name: String) -> Self
Instantiate the builder with the fields chat_id, name, icon_color, icon_custom_emoji_id
sourcepub fn icon_color(self, val: i64) -> Self
pub fn icon_color(self, val: i64) -> Self
Set the field icon_color to the given value
sourcepub fn icon_custom_emoji_id(self, val: String) -> Self
pub fn icon_custom_emoji_id(self, val: String) -> Self
Set the field icon_custom_emoji_id to the given value
Trait Implementations§
source§impl Builder for CreateForumTopicBuilder
impl Builder for CreateForumTopicBuilder
§type Value = CreateForumTopic
type Value = CreateForumTopic
Type to be built